Linux mydumper error libmysqlclient_16 not defined how to do?

  

When importing and exporting multi-threaded Linux system, how many will contact the mydumper tool. Recently, some users have reported that when using mydumper, libmysqlclient_16 not defined error message appears. How to solve this problem?

When testing mydumper compression (-c), there are mistakes:

[root @ liufofu backup] # mydumper -h localhost -u root -p tiger -c - o . /liufofu/-B liufofu

mydumper: relocation error: mydumper: symbol gzopen,

version libmysqlclient_16 not defined in file libmysqlclient_r.so.16 with link time reference

Under libmysqlclient_16.so, in the lib of the mysql installation directory, why is the error

[root@liufofu backup]# ls /usr/local/mysql/lib/

libdbug.a libmyisam .a libmysqlclient.la libmysqlclient_r.so

libmysqlclient.so libmysqld.a libvio.a plugin

libheap.a libmyisammrg.a libmysqlclient_r.a libmysqlclient_r.so.16

Libmysqlclient.so.16 libmystrings.a libz.a

libmygcc.a libmysqlclient.a libmysqlclient_r.la libmysqlclient_r.so.16.0.0

libmysqlclient.so.16.0.0 libmysys.a libz .la

It should be that the system does not reference this directory. You can define the environment variable LD_LIBRARY_PATH and add the directory /usr/local/mysql/lib. The command is as follows:

export LD_LIBRARY_PATH=“/Usr/local/mysql/lib:$ LD_LIBRARY_PATH”

Executing mydumper compression again is fine.

The above is the Linux system mydumper error libmysqlclient_16 not defined method introduced, the problem may be the file loss in the directory, can be re-introduced.

Copyright © Windows knowledge All Rights Reserved