Error in connecting to mysql from perl
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?
-
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. 0 -
Hello, Yes, your hosting provider can resolve this error by reinstalling DBD::MySQL on the server side. Thanks, 0
Please sign in to leave a comment.
Comments
2 comments