The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Error in connecting to mysql from perl

Discussion in 'Database Discussions' 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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. HostingH

    HostingH Well-Known Member

    Joined:
    Jan 13, 2008
    Messages:
    73
    Likes Received:
    3
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Thanks,
     
Loading...

Share This Page