Fixed
Created: Nov 3, 2017
Updated: Sep 8, 2018
Resolved Date: Nov 14, 2017
Found In Version: 7.0.0.26
Fix Version: 7.0.0.27
Severity: Standard
Applicable for: Wind River Linux 7
Component/s: Userspace
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
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