问题描述:安装时出现下面的情况
[root@bogonmyfile]# rpm -ivh MySQL-server-5.6.27-1.linux_glibc2.5.i386.rpm
warning:MySQL-server-5.6.27-1.linux_glibc2.5.i386.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
Preparing... ########################################### [100%]
packageMySQL-server-5.6.27-1.linux_glibc2.5.i386 is already installed
[root@bogonmyfile]# rpm -qa|grep mysql
[root@bogonmyfile]# rpm -ivh MySQL-devel-5.6.27-1.linux_glibc2.5.i386.rpm
warning:MySQL-devel-5.6.27-1.linux_glibc2.5.i386.rpm: Header V3 DSA/SHA1 Signature, keyID 5072e1f5: NOKEY
Preparing... ########################################### [100%]
packageMySQL-devel-5.6.27-1.linux_glibc2.5.i386 is already installed
[root@bogonmyfile]# rpm -ivh MySQL-client-5.6.27-1.linux_glibc2.5.i386.rpm
warning:MySQL-client-5.6.27-1.linux_glibc2.5.i386.rpm: Header V3 DSA/SHA1 Signature,key ID 5072e1f5: NOKEY
Preparing... ###########################################[100%]
packageMySQL-client-5.6.27-1.linux_glibc2.5.i386 is already installed
使用rpm –qa |grep mysql 查询mysql未安装成功
问题解决:
出现该问题是你在安装这次之前已经安装过mysql,但是并没有将mysql彻底卸载干净。
使用rpm –e XXXX将mysql卸载完之后,将所有的mysql文件删除,再使用yum remove mysql, yum removemysql-server, yum remove mysql-shared 等来卸载,最后重新安装,解决上面的问题。
安装步骤:点击打开链接 http://blog.csdn.net/yzbk_dxy/article/details/58106329