os:rhel 9.3
db:mysql 8.0.30
初始化后登录报错:error while loading shared libraries: libtinfo.so.5
解决办法
ls /usr/lib64
为此命令创建一个同步链接并命名为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>
|