472,133 Members | 1,087 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,133 software developers and data experts.

Can't locate DBD/mysql.pm in @INC


I am trying to set-up mysql-zrm to take backups of a remote mysql server.

The mysqlhotcopy command is throwing up the following error:

Output of command: 'mysqlhotcopy' is {
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5 /site_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib /perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi /usr/l ib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at (eval 8) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Proxy, SQLite, Sponge.
at /usr/bin/mysqlhotcopy line 177
mysqlhotcopy on host remote.mysql.net failed at /usr/share/mysql-zrm/plugins/ssh-copy.pl line 317.

I have installed the perl-DBI, perl-XML-Parser and perl-DBD-mysql along with the mysql package included on the SLES10 install disc(I am using SLES10 sp1); also checked the presence of rpms through Yast - so I don't think that the packages are missing...

But I still cannot figure out why this error is occuring and how to fix it.

Could somebody please tell me what is the @INC file?
I guess that the file contained the list of paths where mysql would try to locate the perl-DBD-mysql driver - I checked at the location and found the mysql.pm in the DBD folder along with the other drivers mentioned in the output. So why is it not locating??

Help needed.
Nov 5 '08 #1
1 8727
13,262 8TB
Only thing I can suggest is to go through the mysqlhotcopy reference and check to see that you have everything suggested there.
Nov 7 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Jasper | last post: by
reply views Thread by john townsley | last post: by
5 posts views Thread by HugoFromBOSS | last post: by
5 posts views Thread by scorpionbilli | last post: by
1 post views Thread by David Kingsly | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.