1. cd /home 下载mysql源安装包

wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm

2.安装mysql源

yum localinstall mysql80-community-release-el7-3.noarch.rpm

3.检查是否安装成功

yum repolist enabled | grep "mysql.*-community.*"

4.安装mysql

yum install mysql-community-server

5.启动mysql服务

systemctl start mysqld

6.查看启动状态

systemctl status mysqld

7.设置开机启动

systemctl enable mysqld
systemctl daemon-reload

参考:https://www.cnblogs.com/crazycode2/p/12395312.html

相关文章:

  • 2022-01-07
  • 2021-09-20
  • 2021-08-15
  • 2021-07-16
猜你喜欢
  • 2021-06-02
  • 2021-11-15
  • 2021-09-21
  • 2021-11-20
  • 2021-11-20
  • 2021-11-20
相关资源
相似解决方案