NAVICAT PREMIUM remember the password, but forget the root user password

1, Navicat Premium remember your password, be able to connect MySQL;

2, select the database, right-click and select "command line mode, as

 

3, the command line interface command input

 

 

 

 命令为:ALTER USER'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;

 4, Navicat Premium is closed, the connection again, the situation will not connect appears. Need to modify the configuration by following the steps:

 

 

 

 

 5, say the password into the newly modified good password on it.

 

Guess you like

Origin www.cnblogs.com/dingziyin/p/12618104.html