安装mysql数据库,提示错误信息
error: Failed dependencies:,详细如下:
[root@localhost ~]# rpm -ivh ./mysql-community-server-5.7.19-1.el6.x86_64.rpm
warning: ./mysql-community-server-5.7.19-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-community-client(x86-64) >= 5.7.9 is needed by mysql-community-server-5.7.19-1.el6.x86_64
mysql-community-common(x86-64) = 5.7.19-1.el6 is needed by mysql-community-server-5.7.19-1.el6.x86_64
解决办法:在rpm是指定--nodeps和--force参数进行安装。如下所示:
[root@localhost ~]# rpm -ivh ./mysql-community-server-5.7.19-1.el6.x86_64.rpm --nodeps --force
warning: ./mysql-community-server-5.7.19-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [100%]
1:mysql-community-server ########################################### [100%]
[root@localhost ~]# rpm -ivh ./mysql-community-server-5.7.19-1.el6.x86_64.rpm
warning: ./mysql-community-server-5.7.19-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
mysql-community-client(x86-64) >= 5.7.9 is needed by mysql-community-server-5.7.19-1.el6.x86_64
mysql-community-common(x86-64) = 5.7.19-1.el6 is needed by mysql-community-server-5.7.19-1.el6.x86_64
解决办法:在rpm是指定--nodeps和--force参数进行安装。如下所示:
[root@localhost ~]# rpm -ivh ./mysql-community-server-5.7.19-1.el6.x86_64.rpm --nodeps --force
warning: ./mysql-community-server-5.7.19-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing... ########################################### [100%]
1:mysql-community-server ########################################### [100%]
[root@localhost ~]# ps -ef | grep mysql
root 25430 25249 0 17:04 pts/0 00:00:00 grep mysql
[root@localhost ~]# service mysqld start
初始化 MySQL 数据库: [确定]
正在启动 mysqld: [确定]
[root@localhost ~]# ps -ef | grep mysql
root 25531 1 0 17:05 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
mysql 25726 25531 2 17:05 pts/0 00:00:01 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
root 25777 25249 0 17:07 pts/0 00:00:00 grep mysql
root 25430 25249 0 17:04 pts/0 00:00:00 grep mysql
[root@localhost ~]# service mysqld start
初始化 MySQL 数据库: [确定]
正在启动 mysqld: [确定]
[root@localhost ~]# ps -ef | grep mysql
root 25531 1 0 17:05 pts/0 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql
mysql 25726 25531 2 17:05 pts/0 00:00:01 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/lib/mysql/mysql.sock
root 25777 25249 0 17:07 pts/0 00:00:00 grep mysql
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31403259/viewspace-2144169/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/31403259/viewspace-2144169/