Can ' t open lib '/usr/lib64/libmyodbc5.so ': File not Found
This error occurs because the system does not have MYSQL-CONNECTOR-ODBC installed
If Mysql-connector-odbc and UNIXODBC are installed and Unixodbc-devel
And look at the/usr/lib64/directory, there is indeed libmyodbc5.so
Installation reason 2 troubleshooting
Reason 2:
The figure clearly shows that the MySQL library on which Libmyodbc5.so relies is not found
MySQL library should be in the/usr/lib64/mysql directory
View MySQL dynamic library directory, MySQL dynamic library does exist.
Then we should consider what the problem is ...
Yes, no directories loaded with MySQL dynamic libraries
Take a look at:
Command: cat/etc/ld.so.conf
[Root@callcenter lib64]#
[root@callcenter lib64]# cat/etc/ld.so.conf
include ld.so.conf.d/*.conf
[ Root@callcenter lib64]#
[Root@callcenter lib64]# [Root@callcenter-lib64]# ll/etc/ld.so.conf.d total
28
-rw-r--r--. 1 root atlas-x86_64.conf
-r--r--r--. 1 root 324 Oct 2014 ker nel-2.6.32-504.el6.x86_64.conf
-rw-r--r--. 1 root Aug 2 18:08 local.conf
-rw-r--r--. 1 Root root Aug 2 18:18 mysql.conf
-rw-r--r--. 1 root Aug 2 18:10 openssl.conf
- Rw-r--r--. 1 root Sep qt-x86_64.conf
-rw-r--r--. 1 root 2013 xulrunner-64.co NF
[Root@callcenter lib64]#
[root@callcenter lib64]# cat/etc/ld.so.conf.d/mysql.conf
/usr/local/ Mysql/lib
[Root@callcenter lib64]#
Well, the problem is out, the path to the 64-bit library is not configured in mysql.conf, only 32-bit paths are configured