When using MySQL Workbench or navicat to connect to the server's MySQL, sometimes there will be access denied,
Because no other user rights are assigned to MySQL, you can only log on locally, so set it up.
Settings are as follows:
Open the MySQL console, enter a password, log in to the database, execute the use MySQL command;
Use MySQL; The Database changed will appear;
Re-execution:
Grant all privileges on * * to ' Your user name ' @ '% ' identified by ' your password ';
The results are as follows:
Query OK, 0 rows Affected (0.00 sec)
* * Mark All tables under all databases, ' * '. * Mark All tables under Database *
Then execute:
Grant all on * * to ' your username ' @ '% ' identified by ' your password ';
The results are as follows:
Query OK, 0 rows Affected (0.00 sec)
% number can be entered to allow access to the IP address or host name,% of all IP
Then execute:
Flush privileges;
The results are as follows:
Query OK, 0 rows Affected (0.00 sec)
Mysql> exit; Finally, you can log in remotely by restarting the MySQL service.
Wampserver installed in the server, but MySQL cannot telnet the solution