下载官方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