具体步骤如下:
卸载系统自带的MySQL操作如下
<span style="font-size:14px;">[root@localhost ~]# rpm -qa|grep -i mysql
mysql-libs-5.1.52-1.el6_0.1.x86_64
[root@localhost ~]# rpm -e --nodeps mysql-libs-5.1.52-1.el6_0.1.x86_64
[root@localhost ~]# whereis mysql
mysql: /usr/lib64/mysql /usr/share/mysql
[root@localhost ~]# rm -rf /usr/lib64/mysql
[root@localhost ~]# rm -rf /usr/share/mysql
</span>
使用rpm命令安装MySQL数据库服务端
<span style="font-size:14px;">[root@localhost app]# rpm -ivh MySQL-server-5.6.21-1.linux_glibc2.5.x86_64.rpm
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [100%]
warning: user mysql does not exist - using root
warning: group mysql does not exist - usi