sixty-four
Connect MySQL database instance

After initializing the configuration, you can let the ECS connect to the cloud database instance or connect to the cloud database instance locally to achieve business goals.

background information

After creating an instance of cloud database, setting a whitelist, and creating an account, you can connect to the cloud database instance using a general database client, or you can configure the address, port, and account information in the application to connect.

Connect instances using clients

Because the cloud database is fully compatible with the native database service, you can use any general database client to connect to the cloud database instance in a similar way. Below Take for example.

  1. Start the HeidiSQL client.
  2. Click New in the lower left corner.
  3. Enter the cloud database instance information to connect to. The parameters are described below.

4. Click Open

If the connection information is correct, the instance will be successfully connected.

Connect instances using the command line

If your server has MySQL installed, you can connect to the cloud database instance through the command line. The connection method is as follows:

 Mysql - h<hostname>- P<port>- u<username>- p<password>- D<database>

Does this help solve your problem? resolved Unresolved

Submitted successfully! Thank you very much for your feedback, and we will continue to strive to do better! We are sorry that we were unable to resolve your question. We have received your feedback and will give feedback in time!