By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,312 Members | 1,341 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,312 IT Pros & Developers. It's quick & easy.

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

P: 1
Hi!

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
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
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.