在CentOS 6.7系统上安装MySQL,先用了yum方式安装了一遍,报异常
--> Processing Dependency: libsasl2.so.3()(64bit) for package: mysql-community-server-5.7.20-1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community)
Requires: libsasl2.so.3()(64bit)
Error: Package: mysql-community-client-5.7.20-1.el7.x86_64 (mysql57-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: mysql-community-libs-5.7.20-1.el7.x86_64 (mysql57-community)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community)
Requires: systemd
Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: mysql-community-client-5.7.20-1.el7.x86_64 (mysql57-community)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: mysql-community-server-5.7.20-1.el7.x86_64 (mysql57-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
|
后来有用菜鸟教程的方式重新安装,同样的错误,安装步骤地址:https://www.runoob.com/mysql/mysql-install.html
查询各种信息;基本确定是因为 mysql 的依赖问题;由于对本来说,最快的解决方案就是卸载重装.
卸载步骤:
1. 快速删除 yum remove mysql mysql-server mysql-libs mysql-server
2. 查找残留文件 rpm -qa | grep -i mysql
3. 将查询出来的文件逐个删除,如: yum remove mysql-community-common-5.7.20-1.el6.x86_64
4. 查找残留目录 whereis mysql
5. 逐条删除目录,如: rm –rf /usr/lib64/mysql
清除干净之后重新安装
安装MySQL的异常
原文:https://www.cnblogs.com/huanshilang/p/11332605.html