Wind River Support Network

HomeDefectsLIN8-8150
Fixed

LIN8-8150 : CLONE: Perl missing driver module (dbd) to connect to mySql : "Can't locate DBD/mysql.pm in @INC"

Created: Nov 3, 2017    Updated: Dec 3, 2018
Resolved Date: Nov 10, 2017
Found In Version: 8.0.0.22
Fix Version: 8.0.0.23
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Userspace

Description

LIN6-11722 has been fixed by adding missing dbi module.
But the same testcase fails later one with 
----
root@qemu0@:/opt# mysql_setpermission -h 
Option h is ambiguous (help, host)
Password for user  to connect to MySQL: 
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: /etc/perl /usr/lib64/perl/site_perl/5.14.3/ /usr/lib64/perl/site_perl/5.14.3 /usr/lib64/perl/vendor_perl/5.14.3/ /usr/lib64/perl/vendor_perl/5.14.3 /usr/lib64/perl/5.14.3/ /usr/lib64/perl/5.14.3 /usr/local/lib/site_perl /usr/lib64/perl/5.14.3 .) at (eval 9) line 3, <STDIN> line 1.
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, Gofer, Proxy, Sponge.
 at /usr/bin/mysql_setpermission line 89
---

This module is provided by default with cpan perl 5.14.3.
And this issue has been reported and fixed in LIN9-1469.

--> we need to provide/integrate dbd module

Steps to Reproduce

1), configure
configure --enable-board=intel-x86-64 --enable-kernel=standard --enable-rootfs=glibc-std --enable-jobs=8 --enable-parallel-pkgbuilds=8 --enable-test=yes --enable-reconfig --enable-build=profiling --enable-internet-download=yes --with-template=feature/mysql-odbc,feature/mariadb --with-rcpl-version=auto

2) make 
3) boot and login
4) run
# mysql_setpermission -h 
6) Enter password
--> Error : install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC

Other Downloads


Live chat
Online