Reputation: 924
I have the newest version of mysql installed , along with mysql workbench:
$ mysql --version
mysql Ver 8.0.25-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
When i try to run $ mysql -h pgdb6.cy6onqf2jyfs.us-east-2.rds.amazonaws.com -P 3306 -u admin
, the process hangs for a while, and then kicks back the error :
ERROR 2003 (HY000): Can't connect to MySQL server on 'pgdb6.cy6onqf2jyfs.us-east-2.rds.amazonaws.com:3306' (110)
I cant connect to the mysql server on aws. I have changed my mysql password. I have uninstalled and reinstalled mysql a few times. Im not sure what im missing!
Here is my setup on aws:
here are my security groups and inbound rules
Upvotes: 0
Views: 1698
Reputation: 175
After editing security Groups rules as mentioned by all the answers, In my case I was still getting same issue. So I solved it by modifying the DB settings to make "Publicly accessible" setting to "Yes" as it was set to "No" in my case.
Here's how to do that:
Upvotes: 0
Reputation: 36
I had the same issue and I'm fairly new to AWS. After a lot of research, found out that adding a new inbound rule for the security group worked. Below are the steps,
Go back to terminal or just connect through AWS Console. This worked for me.
Upvotes: 2