MySQL. So 'for module DBD: mysql: libmysqlclient. so.15 cannot open shared object file
Write a backupProgram, Backupmasterdb. pl. the following error is reported during execution:
Install_driver (MySQL) failed: Can't load
'/Usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/DBD/MySQL. so'
For module DBD: mysql: libmysqlclient. so.15 unable to open shared object file: No file or directory
/Usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/dynaloader. PM line 230.
At (eval 3) line 3
Compilation failed in require at (eval 3) Line 3.
Perhaps a required shared library or DLL isn' t installed where expected
At/home/admin/local/backupmasterdb. pl line 51
The error above indicates that libmysqlclient. so.15 cannot be found. Find it first.
# Find/usr/-name "libmysqlclient. So *"
/Usr/local/MySQL/lib/MySQL/libmysqlclient. so.15.0.0
/Usr/local/MySQL/lib/MySQL/libmysqlclient. so.15
/Usr/local/MySQL/lib/MySQL/libmysqlclient. So
Solution:
Echo "/usr/local/MySQL/lib/MySQL/">/etc/lD. So. conf
Ldconfig
Complete