How to change the password of local navicate for mysql?

1. In the past, the sql library password was set locally, that is, when the database was newly created locally, it could not be linked. It turned out that the password could not be entered when the new database was created, and it needed to be modified internally.

2. Open the mysql user table

3. Open the mysql user table and see the structure

4. Modify with mysql statement

use mysql;

update user set password=password('123456') where user='root' and host='127.0.0.1';

flush privileges;   refresh privileges

5.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324443469&siteId=291194637