Use Navicat to connect to MySQL database on Alibaba Cloud server

1. First open Navicat, File > New Connection > MySQL Connection, others are as shown in the picture.

2. Because it is connecting to MySQL on the server, we use SSH to connect, as shown in the second figure.

3. The last connection test, the connection is successful.

Fill in the user name and password of mysql on Alibaba Cloud in the regular


 For SSH, you need to fill in the username and password of the Alibaba Cloud server. Don't make a mistake.



 

Fill in the "General" option that we often use, the "hostname/IP address:" item here must be filled in "localhost" or "127.0.0.1", otherwise it will not connect! The username and password are the username and password of the MySQL database.

 

Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0 解决方法

Guess you like

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