Loading
0

CentOS 7 安装 MySQL 8

下载官方yum源:

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

直接使用yum安装:

yum install mysql

以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

参考:

最后编辑于:2022/9/7作者: joycode

评论已关闭