当前位置:Gxlcms > 数据库问题 > Percona mysql5.7 默认密码

Percona mysql5.7 默认密码

时间:2021-07-01 10:21:17 帮助过:31人阅读


2017-06-26T04:28:05.537965Z 1 [Note] A temporary password is generated for root@localhost:

 ca!wB/i+l7eL


注意!特殊符号需要转义,通过上述登录mysql。

[root@izuf61hued2py4dh0dsgfyz lyh]# mysql -uroot -pca\!wB\/i+l7eL


如果出现以下提示,请按步骤操作即可。

You must reset your password using ALTER USER statement before executing this statement.

step 1: SET PASSWORD = PASSWORD(‘root‘)

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

若提示密码安全级别太低,则需要修改全局变量,如下

step 2: set global validate_password_policy=0;

step 3 set global validate_password_mixed_case_count=2;

step 4: ALTER USER ‘root‘@‘localhost‘ PASSWORD EXPIRE NEVER;

step 5: flush privileges;


授权:grant all on *.* to ‘root‘@‘%‘ identified by ‘Lghs35123‘ with grant option;

开启防火墙端口 centos7:firewall-cmd --zone=public --add-port=3306/tcp --permanent

注意,不同的inux版本的防火墙命令不同。

本文出自 “林元煌的博客” 博客,请务必保留此出处http://lyhmm.blog.51cto.com/1797932/1943516

Percona mysql5.7 默认密码

标签:mysql5.7密码   percona   

人气教程排行