(1) 安装Mysql5.7:
执行命令:rpm -ivh http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql-community-release-el7-7.noarch.rpm
执行命令:yum install mysql-community-server
(2) 配置Mysql开机自动启动
执行命令:systemctl enable mysqld
(3) 启动MYSQL:
执行命令:systemctl start mysqld
时间: 2024-10-31 09:53:22