Bug 66349 - mysqlhotcopy requires perl DBI and DBD-MySQL
Summary: mysqlhotcopy requires perl DBI and DBD-MySQL
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mysql   
(Show other bugs)
Version: 7.3
Hardware: All Linux
Target Milestone: ---
Assignee: Patrick Macdonald
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2002-06-08 09:31 UTC by Warren Togami
Modified: 2007-04-18 16:43 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-06-10 15:01:28 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Warren Togami 2002-06-08 09:31:20 UTC
From Bugzilla Helper: 
User-Agent: Mozilla/5.0 (compatible; Konqueror/3.0.0-10; Linux) 
Description of problem: 
mysqlhotcopy from the mysql package requires the perl-DBI package or else it 
fails with the following error: 
Can't locate DBI.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i386-linux 
/usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i386-linux 
/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0/i386-linux 
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl 
/usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1 
/usr/lib/perl5/vendor_perl .) at /usr/bin/mysqlhotcopy line 8. 
BEGIN failed--compilation aborted at /usr/bin/mysqlhotcopy line 8. 
Should perl-DBI be added to the requirements of the mysql package in order to 
reduce confusion? 
Version-Release number of selected component (if applicable): 
Red Hat Linux 7.3 
How reproducible: 
Steps to Reproduce: 
1. Default install with mysql. 
2. Attempt to use mysqlhotcopy 
Actual Results:   
Error message. 
Expected Results:   
It should work.

Comment 1 Warren Togami 2002-06-10 00:11:50 UTC
mysql also requires perl-DBD-MySQL, or else you get this pleasant message:

install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains:
/usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.6.1/i386-linux /usr/lib/perl5/vendor_perl/5.6.1
/usr/lib/perl5/vendor_perl .) at (eval 1) line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: ExampleP, Proxy.
 at /usr/bin/mysqlhotcopy line 162

Comment 2 Trond Eivind Glomsrxd 2002-06-10 15:01:22 UTC
Perl is already required, so I should probably add these.

Comment 3 Trond Eivind Glomsrxd 2002-06-10 16:49:31 UTC
Done, in mysql-3.23.50-2

Comment 4 Matthew Daniel 2005-01-20 18:43:00 UTC
There is an issue (in my head and machine, at least) with putting the
perl-DBD-MySQL dependency on the mysql (the client package) versus
mysql-server (the part that actually requires perl-DBD-MySQL).

I can't upgrade the "mysql" package because it would break perl-DBD-
MySQL's dependency on libmysqlclient.so.10. But I can't rebuild perl-
DBD-MySQL because that requires mysql-devel (which requires mysql).

The solution is to move the perl-DBD-MySQL dependency to the server

Note You need to log in before you can comment on or make changes to this bug.