MYSQL之 error while loading shared libraries: libtinfo.so.5: cannot open shared objectfile: No such f
环境:ubuntu18
登陆MYSQL时遇到错误:mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
解决,查看MYSQL的依赖
$ ldd mysql
libtinfo.so.5 => not found
1
2
查看依赖是否存在
$ ls /lib/x86_64-linux-gnu/libtinfo.so.*
1
如果不存在,则去一个好的ubunu中复制一个libtinfo.so.5,并放入 /lib/x86_64-linux-gnu 目录下:
$ locate libtinfo.so.5 # 或者直接定位看linux中有没有然后复制一个就可以了
ln -s /usr/lib/libncurses.so.5 /usr/lib/libtinfo.so.5
ln -s /usr/lib/libncurses.so.5 /lib/libtinfo.so.5
---------------------
就可以了
备注:libtinfo.so.5 百度云:https://pan.baidu.com/s/1SFza-Fa2-CVQh955XsJsZA
备注:查看MYSQL的依赖
$ cd /usr/local/mysql/bin
$ ldd mysql
linux-vdso.so.1 (0x00007ffc9bffc000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5f948b4000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f5f948aa000)
libssl.so.1.0.0 => /usr/local/mysql_8.0.13/bin/./libssl.so.1.0.0 (0x00007f5f9463a000)
libcrypto.so.1.0.0 => /usr/local/mysql_8.0.13/bin/./libcrypto.so.1.0.0 (0x00007f5f94203000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f5f941fd000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f5f93fd3000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f5f93e47000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f5f93cba000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5f93ca0000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5f93ab6000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5f948ea000)
参考:http://blog.chinaunix.net/uid-24532607-id-2778601.html
---------------------
作者:Ocean&&Star
来源:CSDN
原文:https://blog.csdn.net/zhizhengguan/article/details/86686621
版权声明:本文为博主原创文章,转载请附上博文链接!
相关文章
- linux环境,通过rpm删除mysql包,报错:error reading information on service mysqld: Invalid argument
- mysql:ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)
- MySQL DELETE 表别名问题
- [转]mysql时报错:mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object fil
- 【mysql报错】ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘
- ERRORinit datasource error, url: jdbc:mysql://localhost:3306/xxxxxx?useUnicode=true&characterEncoding=gbk&serverTimezone=GMT&useSSL=false
- mysql错误一例:ERROR 1030 (HY000): Got error 28 from storage engine
- mac ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- 转发 可设置skip_name_resolve参数 会出现 ERROR 2005 (HY000): Unknown MySQL server host _mysql ...
- Mysql中use一个表出现警告:Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
- mysql截取字符串与reverse函数
- PowerDesigner 逆向工程Non SQL Error : Could not load class com.mysql.jdbc.Driver
- ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- 浅析mysql报错:Error writing file '/tmp/MY4QWdUa' (Errcode: 28 - No space left on device) 磁盘空间不足的问题和解决思路
- MySQL基础(视图及索引)
- mysql 索引优化,索引建立原则和不走索引的原因
- Error Code: 2006 - MySQL 鏈嶅姟鍣ㄥ凡绂荤嚎
- mysql ssl 2026_mysql ERROR 2026
- Starting MySQL. ERROR! The server quit without updating PID file(xxx/x.pid)
- 为什么mysql 5.7.24启停不显示错误信息?log-error_verbosity参数
- mysqldump导出报错“mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table
- [转]MySQL远程连接ERROR 2003 (HY000):Can't connect to MySQL server on'XXXXX'(111) 的问题
- mysql 链接数满了的错误 ERROR 1040 (HY000): Too many connections