Introduction to the method for Ali CVM to connect to rds
Aliyun's rds refers to the cloud database, which needs to be purchased separately if you want to use the rds cloud database. So how does Ali CVM connect to rds? Let's describe the steps for Ali CVM to connect to the RDS database.
1. Open the purchased RDS database and click the database connection to view the router where the vpc is located.
2. Open the ECS instance of the CVM to view the vpc router of ECS, and make sure that the two are using the same router.
3. Add the whitelist grouping to the RDS database and add the ip of your ECS CVM to the whitelist.
4. Open the ECS instance, remotely connect to the ECS CVM, and type yum install mysql on the server to install the mysql service.
5. Connect to the RDS database on the ECS CVM, and enter the private network address of mysql-h RDS-u RDS username-p password to enter the database.
The above is the introduction of how to connect to rds on Ali CVM. In fact, for general SME websites, using CVM usually does not require the purchase of additional databases.
If you want to know more, you are welcome to follow the industry information. there is a lot of technical information about technology class, database class and server class.