当前位置:网站首页>CentOS install mysql5.7

CentOS install mysql5.7

2022-07-26 08:00:00 Little thief [email&#

1. download Mysql yum package
wget http://repo.mysql.com/mysql57-community-release-el7-10.noarch.rpm
2. Installation software source
rpm -Uvh mysql57-community-release-el7-10.noarch.rpm
3. install mysql Server side
Execute first :yum module disable mysql
Re execution :yum -y install mysql-community-server
4. start-up mysql
service mysqld start
5. Check mysql Operating state
service mysqld status
6. Change the temporary password
(1) View current password
grep ‘temporary password’ /var/log/mysqld.log
My password is : WNKF0nP,C#t=
(2) Change Password
Sign in :mysql -uroot -p
modify :ALTER USER ‘root’@‘localhost’ IDENTIFIED BY ‘123456’;
Modify the parameters :
mysql> set global validate_password_policy=0;
mysql> set global validate_password_length=1;
to grant authorization :
GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘123456’;
7. stay Navicat for MySQL Middle link
 Insert picture description here
8. Link to the original text
https://blog.csdn.net/lovequanquqn/article/details/82343920

原网站

版权声明
本文为[Little thief [email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/201/202207181754402829.html