- 检查卸载系统自带Mysql及其相关RPM包
[root@localhost ~]# rpm -qa | grep mysql
mysql-libs-5.1.73-3.el6_5.x86_64
[root@localhost ~]# rpm -e mysql-libs-5.1.73-3.el6_5.x86_64
[root@localhost ~]# rpm -e –nodeps mysql-libs-5.1.73-3.el6_5.x86_64
- 依次RPM安装这里需要到官网上去下载对应的离线包
rpm -ivh MySQL-server-5.6.36-1.el6.x86_64.rpm
rpm -ivh MySQL-devel-5.6.36-1.el6.x86_64.rpm
rpm -ivh MySQL-client-5.6.36-1.el6.x86_64.rpm
rpm -ivh MySQL-shared-compat-5.6.36-1.el6.x86_64.rpm
[root@localhost ~]# cd /opt/install/mysql/
[root@localhost mysql]# ls # 查看
MySQL-client-5.6.36-1.el6.x86_64.rpm
MySQL-devel-5.6.36-1.el6.x86_64.rpm