Centos 安装mysql8

1.移除mariadb
# 查询是否安装mariadb
# RedHat Package Manger(RedHat软件管理工具)
# -qa query all
# grep (global search rgular expression(RE) and print out the line) 文本搜索
rpm -qa|grep mariadb

# 移除mariadb
yum remove mariadb

# 查看mysql的配置类文件信息
ls /etc/my.cnf
ll /var/lib/mysql/

# 移除mysql 配置信息
rm -rf /etc/my.cnf
rm -rf /var/lib/mysql/

# 查看是否有mysql 服务
systemctl service mysql
继续阅读Centos 安装mysql8