今天在虚拟机CentOs中安装Mysql怎么也安装不了,总是提示一下信息,网上查了很多资料的解决方案都没有用,然后自己找到了解决方案。这里要提到一个网站https://pkgs.org/,他是linux系统的一个相关网站,里面都是相关内容
Warning: RPMDB altered outside of yum.
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
glibc-utils-2.17-55.el6.x86_64 has missing requires of libgd.so.2()(64bit)
2:postfix-2.6.6-2.2.el6_1.x86_64 has missing requires of libmysqlclient.so.16()(64bit)
2:postfix-2.6.6-2.2.el6_1.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)
1、提示缺少什么依赖,直接在该网站中进行搜索
2、点击进入下一个页面
3、右键复制链接,打开linux控制台
[root@localhost xmf]# wget http://mirror.centos.org/centos/6/os/x86_64/Packages/gd-2.0.35-11.el6.x86_64.rpm
--2020-02-29 03:59:20-- http://mirror.centos.org/centos/6/os/x86_64/Packages/gd-2.0.35-11.el6.x86_64.rpm
Resolving mirror.centos.org... 13.233.140.107, 2401:78c0::e00e
Connecting to mirror.centos.org|13.233.140.107|:80... connected.
HTTP request sent, awaiting response... 200