1. 输入以下命令来更新yum: sudo yum update 2. 安装MySQL公共密钥: sudo rpm --import http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm 3. 下载MYSQL YUM REPOSITORY并安装: sudo wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm 4. 安装MySQL Server: sudo yum -y install mysql-server 5. 启动MySQL服务: sudo service mysqld start 6. 修改root账号密码: sudo /usr/bin/mysql_secure_installation 7. 卸载MySQL Server: sudo yum -y remove mysql-server mysql-libs 8. 清除数据: sudo rm -rf /var/lib/mysql 9. 重新安装MySQL Server: sudo yum install mysql-server
通过以上步骤,可以轻松地在Linux上安装MySQL5.5。希望对你有所帮助。