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. - Start the HeidiSQL client.
- Click New in the lower left corner.
- 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> |