centos 8安装mysql
查了那么乱七八糟的文章都没搞定,最后还是查了官方的,才装上;
官方文档地址:
简单记录下centos8的安装步骤
- Adding the MySQL Yum Repository
Yum Repository pagewget https://repo.mysql.com//mysql80-community-release-el8-1.noarch.rpm yum install mysql80-community-release-el8-1.noarch.rpm
- Disabling the Default MySQL Module
yum module disable mysql
- Installing MySQL
yum install mysql-community-server
- Start mysql
systemctl start mysqld systemctl status mysqld