linux CentOS7下 mysql5.7.25 密码改简单的方法

在 vim /etc/my.cnf配置文件中增加:

validate_password=off

default_password_lifetime=0

重新启动

执行:update mysql.user set authentication_string=password('123456') where user='root' ;

猜你喜欢

转载自www.cnblogs.com/javasl/p/10354888.html