当前位置: 首页 > news >正文

mysql库缺失

mysql库缺失libncurses.so.5和libtinfo.so.5

报错信息:

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

解决过程:

[root@bogon ~]# systemctl stop firewalld
[root@bogon ~]#
[root@bogon ~]# setenforce 0
[root@bogon ~]# systemctl start mysqld
[root@bogon ~]# systemctl status mysqld
● mysqld.service - MySQL ServerLoaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; preset: disabled)Active: active (running) since Wed 2025-09-17 19:27:31 CST; 3s agoDocs: man:mysqld(8)https://dev.mysql.com/doc/refman/en/using-systemd.htmlMain PID: 1336 (mysqld)Tasks: 1 (limit: 10892)Memory: 282.9MCPU: 3.283sCGroup: /system.slice/mysqld.service└─1336 /application/mysql/bin/mysqld --defaults-file=/etc/my.cnfSep 17 19:27:31 bogon systemd[1]: Started MySQL Server.
[root@bogon ~]# systemctl enable mysqld
[root@bogon ~]# mysql -uroot -p123456
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[root@bogon ~]# find / -name 'libncurses*'
/usr/lib64/libncurses.so.6
/usr/lib64/libncurses.so.6.2
/usr/lib64/libncursesw.so.6
/usr/lib64/libncursesw.so.6.2
/usr/lib64/libncurses++.so.6
/usr/lib64/libncurses++w.so.6
/usr/lib64/libncurses++w.so
/usr/lib64/libncursesw.so
/usr/lib64/libncurses++.so
/usr/lib64/libncurses.so
/usr/lib64/libncurses++.so.6.2
/usr/lib64/libncurses++w.so.6.2
[root@bogon ~]# ln -s /usr/lib64/libncurses.so.6 /usr/lib64/libncurses.so.5
[root@bogon ~]# mysql -uroot -p123456
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
[root@bogon ~]# mysql -uroot -p123456
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
[root@bogon ~]# ln -s /usr/lib64/libtinfo.so.6 /usr/lib64/libtinfo.so.5
[root@bogon ~]# mysql -uroot -p123456
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
http://www.hskmm.com/?act=detail&tid=7483

相关文章:

  • flask简单路由(视图函数)
  • 【学习笔记】拉格朗日插值
  • [系统] Windows 已有office版本和visio不兼容的解决方案
  • CF 2127F Hamed and AghaBalaSar
  • AT_agc055_b [AGC055B] ABC Supremacy
  • “Sequential Thinking MCP Server 和codex等AI工具本身任务拆解功能对比
  • 基于错误xsleak 悬空标记 运用css利用帧计数 -- Pure leak ASIS CTF 2025
  • 网易伏羲:当算法遇见社交,解码游戏世界的连接密码
  • 在 CentOS 7 上安装Nginx和配置http代理
  • 题解:P2624 [HNOI2008] 明明的烦恼
  • 在AI技术快速实现创想的时代,挖掘新需求成为核心竞争力——某知名DevOps学习平台需求洞察
  • Windows Powershell 获取版本version
  • XXL-JOB (1)
  • 记录---Vue3对接UE,通过MQTT完成通讯
  • 《Real-Time Rendering》第一章 介绍
  • C语言基础
  • 公益站Agent Router注册送200刀额度竟然是真的
  • 数据集中valid的作用
  • 深入 RocketMQ 核心源码:从环境搭建到高可用设计的全方位解析
  • 单例模式
  • apache修改默认位置
  • 实用指南:YOLOv11的旋转目标检测改进-(扩展检测头支持旋转框预测,适配遥感场景)
  • 从零到顶会:NLP科研实战手册 - 实践
  • 肝不好能喝酒吗
  • ROS中如何将日志格式设置为行号的形式
  • USB相关的sysfs文件(重要的)【转】
  • 25上第一周
  • 深入解析:RxJava在Android中的应用
  • 模型选择与配置说明
  • 梯度下降算法