重庆思庄Oracle、、PostgreSQL、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1643|回复: 0

[命令及语法] 初始化后登录报错:error while loading shared libraries: libtinfo.so.5

[复制链接]
发表于 2024-7-9 15:43:22 | 显示全部楼层 |阅读模式
os:rhel 9.3
db:mysql 8.0.30

初始化后登录报错:error while loading shared libraries: libtinfo.so.5
解决办法
ls /usr/lib64
90080668ce9aea1857.png

为此命令创建一个同步链接并命名为libtinfo.so.5即可

ln -s /usr/lib64/libtinfo.so.6.2 /usr/lib64/libtinfo.so.5

注:不同Linux版本下的 libtinfo.so 版本号可能不同,根据自己的修改

再次登录成功

[root@sztech mysql]# ln -s /usr/lib64/libtinfo.so.6.2 /usr/lib64/libtinfo.so.5

[root@sztech mysql]# mysql -uroot -p                          

Enter password:

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 8

Server version: 8.0.30

Copyright (c) 2000, 2022, 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> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';

Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;

Query OK, 0 rows affected (0.00 sec)

mysql>



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2025-4-22 12:19 , Processed in 0.091309 second(s), 24 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表