来自简书的: https://www.jianshu.com/p/f4a98a905011
注:
1. 下载方式: 可以使用命令下载: wget http://downloads.mysql.com/archives/get/file/mysql-5.6.27-linux-glibc2.5-x86_64.tar.gz
2. 如果启动mysql 失败,会报各种 No such file or directory : ./support-files/mysql.server start
解决方法:
1 mkdir /var/log/mariadb
2 chmod 700 /var/log/mariadb
3. 后期重启mysql服务可能会失败: https://www.linuxidc.com/Linux/2016-03/128880.htm
1) 这个错误是开启方式不正确 在sentos7 已经不再是安装muysql而是直接安装 Mariadb
2) Mariadb 代替了mysql 可以说 mysql = = Mariadb
3) 全部配置完成,重启mariadb
systemctl restart mariadb systemctl stop mariadb systemctl start mariadb