CentOS 7 安装 MySQL 8

图片[1]-CentOS 7 安装 MySQL 8-JoyCode 编程小战

下载官方yum源:

https://dev.mysql.com/downloads/repo/yum/

直接使用yum安装:

yum install mysql-server

以CentOS 7 为例:

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

启动mysql:

systemctl enable mysqld
systemctl start mysqld

查看初始密码:

grep "password" /var/log/mysqld.log

参考:

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享