1. 程式人生 > >linux CentOS7下 mysql5.7.25 密碼改簡單的方法

linux CentOS7下 mysql5.7.25 密碼改簡單的方法

The 重新 spa ring password auth use off str

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

validate_password=off

default_password_lifetime=0

重新啟動

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

linux CentOS7下 mysql5.7.25 密碼改簡單的方法