Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Error in connecting to mysql from perl

Discussion in 'Database Discussion' started by hegdes, Jan 15, 2014.

  1. hegdes

    hegdes Registered

    Joined:
    Jan 15, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi,

    Whenever I try to connect to MySQL database from a sample perl script, I get the below error. But the DBI and DBD::MySQL modules are already installed in my CPanel.


    install_driver(mysql) failed: Can't load '/usr/local/lib/perl5/site_perl/5.8.8/i686-linux/auto/DBD/mysql/mysql.so' for module DBD::mysql: libmysqlclient.so.15: cannot open shared object file: No such file or directory at /usr/local/lib/perl5/5.8.8/i686-linux/XSLoader.pm line 68.
    at /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/DBD/mysql.pm line 15.
    Compilation failed in require at (eval 8) line 3.
    Perhaps a required shared library or dll isn't installed where expected
    at test.pl line 14.

    Can anyone help me?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Your access level is listed as "Website Owner". Assuming this is accurate and you do not have root access to the system, I recommend contacting your web hosting provider for assistance with this issue.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. HostingH

    HostingH Well-Known Member

    Joined:
    Jan 13, 2008
    Messages:
    125
    Likes Received:
    17
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, your hosting provider can resolve this error by reinstalling DBD::MySQL on the server side.

    Thanks,
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice