简体   繁体   中英

failed to connect to Mysql at [AWS RDS ADDRESS] unable to connect to localhost

Our company has a database server on AWS which other the employees can connect to it with MySQL, but when I tried, I got this error message, how can I solve it? I tried to reconfigure MySQL server but it didn't work. also I double checked username, password, url and port.

在此处输入图像描述

To connect to an RDS MySQL instance from MySQL WOrkbench on your dev machine, check a few things.

First, get the full endpoint to the database from AWS Management console.

在此处输入图像描述

Ensure the database is publicly accessable.

Also, make sure that you set up your inbound rules correctly.

Once you do these things, you can use MySQL Workbench to connect.

在此处输入图像描述

In the hostname field, make sure you put in the hostname you copied from AWS Management console. Do not put in extra information such as:

dbc:mysql://forxxxxxxxxxxxxx.us-west-2.rds.amazonaws.com

make sure it is:

forxxxxxxxxxxxxx.us-west-2.rds.amazonaws.com

THen specify the user name and password and MySQL Workbench will connect:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM