forget the password:
According to the solution on the Internet:
1. Modify the configuration file my.ini to skip password verification.
2. Edit my.cnf
But the above may or may not be useful, or even the MySql service cannot be started after modifying the configuration file
So, there is a more straightforward way:
First, open the ongoing service
We can see MySQL
Next click on properties
After entering, click "Login" and select this account
Notice:
1. In the network service, click on the advanced option, there is a search, and then there will be a NETWORK SERVICE. After clicking, it will be a network service
2. If not, restart after changing
3. Finally, execute "mysql -uroot -p" in cmd and set the password. Finally, delete the original connection in navicat, then add a new root connection, and enter the password
Change the password to one you set, preferably a relatively simple one like 123456, and log in again.