Hi, I'm using mysqlhotcopy to save some MariaDB databases. I get the following error message : install_driver(MariaDB) failed: Can't locate DBD/MariaDB.pm in @INC (you may need to install the DBD::MariaDB module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at (eval 12) line 3. Perhaps the DBD::MariaDB perl module hasn't been fully installed, or perhaps the capitalisation of 'MariaDB' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Mem, Sponge, mysql. at /bin/mysqlhotcopy line 203. I looks very similar to this issue : https://bugzilla.redhat.com/show_bug.cgi?id=1929106 The package perl-Data-ObjectDriver-0.210.0-1.mga8 contains a Perl module DBD/MariaDB.pm but it does not solve the issue. Could you please add the required packages for mysqlhotcopy to work under Mageia8. Steps to reproduce : mysqlhotcopy -u root -p <root_password> my_db backup_dir Regards. Xuo.
CC: (none) => xuoySummary: I need the package perl-DBD-MariaDB => mysqlhotcopy is failing.
Thank you for the report. "The package perl-Data-ObjectDriver-0.210.0-1.mga8 contains a Perl module DBD/MariaDB.pm but it does not solve the issue." Looks important. It is not the only module of this name, so perhaps a special MariaDB version is missing: $ urpmf MariaDB.pm perl-Rose-DB:/usr/share/perl5/vendor_perl/Rose/DB/MariaDB.pm perl-Data-ObjectDriver:/usr/share/perl5/vendor_perl/Data/ObjectDriver/Driver/DBD/MariaDB.pm 'mysqlhotcopy' is in pkg 'mariadb-common'. Assigning to Marc.
Assignee: bugsquad => mageiaSummary: mysqlhotcopy is failing. => mysqlhotcopy is failing "Can't locate DBD/MariaDB.pm"Source RPM: (none) => mariadb-10.5.10-1.mga8.src.rpm
since this is perl related, and I'm not an perl expert, maybe we have some experts around? I can add the dependancy to mariadb, but I don't know why this does not solve the issue.
CC: (none) => perl
Hi, On Mageai7, when I was using mysqlhotcopy, these 2 packages were not installed (perl-Rose-DB and perl-Data-ObjectDriver). It is this one (perl-DBD-mysql) which was used. So I guess that the perl-DBD-mariadb package should be created starting from the perl-DBD-mysql one (easier to say than to do). Regards. Xuo.
Hi, I could make it work after I've done the following : urpmi cpanminus (to get the cpanm command) urpmi lib64mariadb-devel (to get the mysql.h file) cpanm DBD::MariaDB (to install the DBD::MariaDB Perl module). Regards. Xuo.
update in mga9, I think I can import this package to mga8 and we will have this fixed with the next release
updated mariadb package in #29168 to rel 2
Resolution: (none) => FIXEDStatus: NEW => RESOLVED
Hi, What does "updated mariadb package in #29168 to rel 2" mean ? The current mariadb package I have is : mariadb-10.5.10-1.mga8 How to get the new one ? Regards. Xuo.
The package is currently in core/updates_testing repo and will be pushed as soon as possible to core/updates when QA did test it. This bug should not be closed. Don't close bug until the correct one is pushed, please.
CC: (none) => ouaurelienStatus: RESOLVED => REOPENEDResolution: FIXED => (none)Depends on: (none) => 29168
Status comment: (none) => waiting for updates pushed from bug 29168
An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2021-0144.html
Resolution: (none) => FIXEDStatus: REOPENED => RESOLVED
Status comment: waiting for updates pushed from bug 29168 => (none)
Hi, It works fine now. What I did : urpmi cpanminus (to get the cpanm command) urpmi lib64mariadb-devel (to get the mysql.h file) cpanm DBD::MariaDB (to install the DBD::MariaDB Perl module). cpanm --uninstall DBD::MariaDB urpme lib64mariadb-devel urpme cpanminus urpmi --auto-update Now, I get the new mariadb version : rpm -qa | grep mariadb => mariadb-10.5.11-2.mga8 mysqlhotcopy works. Thank you for your help. Regards. Xuo.