本文仅适用于个人开发学习的环境搭建参考,搭建步骤基于网络教程,因此可能有很多不严谨的地方,目的是做为笔记参考学习使用。
如果你觉得这篇文字像流水账一样无聊又没有看下去的欲望,可以跳过,翻阅我的其他博客文章。卸载 Mysql 相关程序
卸载Mysql:1
2[[email protected] services]# find / -name mysql
[[email protected] services]# find / -name mysql|xargs rm -rf
卸载系统自带的Mariadb:1
2
3[[email protected] services]# rpm -qa|grep mariadb
mariadb-libs-5.5.56-2.el7.x86_64
[[email protected] services]# rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64
删除 etc 目录下的my.cnf(有则删除,没有忽略)1[[email protected] services]# rm /etc/my.cnf
下载 Mysql 安装包和解压文件
Mysql 5.5 下载地址,下载 Linux- Generic 64 位 tar.gz 安装包,上传到/usr/services 目录下:1
2
3
4# 解压
[[em