centos 安装mysql

2021/8/11 2:05:44

本文主要是介绍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!



这篇关于centos 安装mysql的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程