Linux安装MySQL
下载安装包
- 下载.rpm文件
sudo wget https://repo.mysql.com//mysql80-community-release-el7-11.noarch.rpm
- 执行rpm命令,安装rpm数据库
sudo rpm -Uvh mysql80-community-release-el7-11.noarch.rpm
- 安装mysql
sudo yum install mysql-server
mysql服务控制
- 启动mysql
sudo systemctl start mysqld
- 查看mysql运行状态
sudo systemctl status mysqld
标签:sudo,安装,Linux,mysql,MySQL,rpm
From: https://www.cnblogs.com/yangxuanzhi/p/18139109