mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

释放双眼,带上耳机,听听看~!
🤖 由 ChatGPT 生成的文章摘要

mysql client连接数据库报错日志如下

[root@abcdocker mysql-5.7.36-linux-glibc2.12-x86_64]# ./bin/mysql -uroot -p -h 10.102.xx.xxx
./bin/mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

解决办法

[root@abcdocker mysql-5.7.36-linux-glibc2.12-x86_64]# ln -s /usr/lib64/libncurses.so.6 /usr/lib64/libncurses.so.5

继续执行发现libtinfo.so.5模块也没有

[root@abcdockermysql-5.7.36-linux-glibc2.12-x86_64]# ./bin/mysql -uroot -p -h 10.102.xx.xx
./bin/mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory

同样给libtinfo 模块也添加一下

[root@abcdocker mysql-5.7.36-linux-glibc2.12-x86_64]# ln -s /usr/lib64/libncurses.so.6 /usr/lib64/libtinfo.so.5

最后执行mysql命令

[root@abcdocker mysql-5.7.36-linux-glibc2.12-x86_64]# ./bin/mysql -uroot -p -h 10.102.xx.xx
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 122009
Server version: 8.0.31 MySQL Community Server - GPL

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

给TA打赏
共{{data.count}}人
人已打赏
报错锦集

redis哨兵redis.clients.jedis.exceptions.JedisException: Can connect to sentinel, but mymaster seems to be not monitored...

2023-9-19 19:02:41

Docker问题报错锦集

Docker save镜像提示Error response from daemon: stat /var/lib/docker/overlay2/xx: no such file or directory

2023-12-19 15:57:38

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索