Home > Database > navicat > What should I do if I forget my password for navicat for myaql?

What should I do if I forget my password for navicat for myaql?

爱喝马黛茶的安东尼
Release: 2019-08-21 14:58:31
Original
5983 people have browsed it

What should I do if I forget my password for navicat for myaql?

What should I do if I forget my password for navicat for myaql? The solution is as follows:

Related recommendations: "Navicat for mysql usage tutorial"

1. Close the running MySQL service: Control Panel → Management Tools → Service→MySQL56 (the version I installed is mysql_5.6.16_32_msi)

2. Open the DOS window and go to the mysql→bin directory. (My installation path is C:\MySQL\MySQL Server 5.6)

3. Enter mysqld --skip-grant-tables and press Enter. --skip-grant-tables means to skip the permission table authentication when starting the MySQL service.

4. Open another DOS window (because the DOS window just now cannot be moved) and go to the mysql-bin directory.

5. Enter mysql and press Enter. If successful, the MySQL prompt > will appear.

6. Connect to the permission database: use mysql;.

7. Change password: update user set password='123' where user="root"; (don’t forget to add the semicolon at the end)

8. Refresh permissions (required steps): flush privileges;

9. Quit.

10. Log out of the system, re-enter, and log in using the user name root and the new password 123 just set.

The above is the detailed content of What should I do if I forget my password for navicat for myaql?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template