Ali cloud ECS RDS database server connections

1 Open RDS database to buy, click the database connection, see the router where vpc

 

 2 Open ECS ECS instance view vpc router, ensuring that both use the same router

 

 

3 Add the white list in the RDS group, the ip your ECS server is added to the whitelist

I am here to 0.0.0.0, the default is accessible to any ip RDS (unsafe).

4 Open ECS, ECS remote connection to the server, the input yum install mysql mysql installation service on the server.

5 RDS database connection in ECS server, enter mysql -h RDS internal network address -u RDS user name -p password to enter the database

 

Guess you like

Origin www.cnblogs.com/-mrl/p/12174974.html