centos 安装mysql

centos 安装mysql

  • wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm

  • yum localinstall mysql57-community-release-el7-8.noarch.rpm

  • yum repolist enabled | grep "mysql.-community."

  • yum install mysql-community-server

  • systemctl start mysqld

  • grep 'temporary password' /var/log/mysqld.log

    查询初始密码

  • mysql -u root -p

    密码登录

  • set password for 'root'@'localhost'=password('123456Aa?');


done!

上一篇:Linux中MySQL的安装以及卸载


下一篇:记录一次Jenkins迁移后的拉取仓库401问题