win10 mysql8.0 Navicat installation and connection problems

Pro test is effective:

ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: NO) 
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using passwor: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using passwor: NO)

First C:\Program Files\MySQL\MySQL Server 8.0look in the directory to see if there is one my.ini.
If so, follow the first step below, if not.
my.iniThe file should be under the C:\ProgramData\MySQL\MySQL Server 8.0path. After copying it to the above path, follow the first step.
Remember to restart the mysql service after the update.
win+SSearch for services, find MYSQL and MYSQL80, and restart them.
https://blog.csdn.net/dream_miracle/article/details/82663652

After it can be used locally, and then use Navicat to visualize the database, there will be problems with the first connection:

Can't connect to MySQL server on 'xxx.xxx.xxx.xxx' (10061)

If this problem also occurs in the first link above, the following methods can also be used to solve it.
https://blog.csdn.net/wen_3370/article/details/72821443

Use Navicat for Mysql to connect to the server MySql.
question:

2013-Lost connection to MYSQL server at 'reading for initial communication packet',system error:0
  1. Make sure the server closes the firewall firewalld.service
  2. Check whether the Mysql remote login account is enabled
  3. Use ss -tlnpto see if the current port is open
  4. The port number can be found in the mysql directory my.cnf, mine is not 3306, so I made an oolong. and add modifications. For specific operations, see:
    https://blog.csdn.net/qq_16885135/article/details/53096451
    is great!
    https://blog.csdn.net/Homewm/article/details/81316852
    This article mentioned that when Navicat connects to the database, the username and password are 常规连接different from those SSHwhen connecting.

Guess you like

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