linux中mydumper出现libmysqlclient_16 not defined如何解决
2019/10/10/17:47:13 阅读:1762 来源:谷歌SEO算法 标签:
区块链
下面来给各位介绍一下linux中mydumper出现libmysqlclient_16 not defined解决办法,希望例子能帮助到各位同学.
昨天在测试mydumper压缩功能(-c)时,出现如下错误:
[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
定位了下libmysqlclient_16.so在mysql安装目录的lib下有啊,怎么还报错,代码如下:
- [root@liufofubackup]#ls/usr/local/mysql/lib/
- libdbug.alibmyisam.alibmysqlclient.lalibmysqlclient_r.so
- libmysqlclient.solibmysqld.alibvio.aplugin
- libheap.alibmyisammrg.alibmysqlclient_r.alibmysqlclient_r.so.16
- libmysqlclient.so.16libmystrings.alibz.a
- libmygcc.alibmysqlclient.alibmysqlclient_r.lalibmysqlclient_r.so.16.0.0--phpfensi.com
- libmysqlclient.so.16.0.0libmysys.alibz.la
查了下资料应该是系统没有引用这个目录,可以定义下环境变量LD_LIBRARY_PATH,加入/usr/local/mysql/lib这个目录,命令如下.
export LD_LIBRARY_PATH="/usr/local/mysql/lib:$LD_LIBRARY_PATH"
再次执行mydumper压缩功能就没问题了.
热门评论