时间:2021-07-01 10:21:17 帮助过:5人阅读
1.检查是否已经安装过mysql,执行命令
# 删除rpm包 rpm -qa | grep mysql rpm -e --nodeps mysql-libs-5.1.73-5.el6_6.x86_64 # 查看其他mysql文件 whereis mysql find / -name mysql # 删除,如下 rm -rf /usr/bin/mysql /usr/include/mysql /data/mysql /data/mysql/mysql # 检查是否删除完毕 rpm -qa | grep mysql whereis mysql find / -name mysql
2.安装mysql,https://dev.mysql.com/downloads/repo/yum/
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm rpm -ivh mysql-community-release-el7-5.noarch.rpm yum update
# 安装mysql yum install mysql-server
3.启动mysql
#初始化mysql mysqld --initialize #启动 MySQL: systemctl start mysqld #查看 MySQL 运行状态: systemctl status mysqld
linux安装mysql
标签:highlight -name unity arc 安装 x86_64 data href down