CentOS yum 安装 mysql

1# wget https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
2# rpm -ivh mysql80-community-release-el7-1.noarch.rpm
3# yum install mysql-server -y
4# service mysqld start
5# grep "temporary password" /var/log/mysqld.log
6# mysql -u root -p
7# alter user ‘root‘@‘localhost‘ indentified by ‘新密码‘;

 

#参考资料

官网:https://dev.mysql.com/downloads/file/?id=477146

个人博客:https://www.xingchenw.cn/article/179

相关文章