Can't connect to AWS RDS MySQL using mysql CLI

0

I'm trying to access my new MySQL database using my Linux ubuntu command line prompt and can't guess why i get an error message: -Command lines: mysql -h cryptoboss.ciugn9m0bdta.eu-west-1.rds.amazonaws.com -P 3306 -u cryptoboss -p -error message: ERROR 2003 (HY000): Can't connect to MySQL server on 'cryptoboss.ciugn9m0bdta.eu-west-1.rds.amazonaws.com:3306' (110) -Investigated: I've been investigating firewall, adding new group security rules on my IP address, etc but nothing works properly

2 Answers
1
Accepted Answer

Is this Rds public facing? If so is it in a public subnet with a route to an IGW?

If it’s public facing you would have to add your public ip to the security group rules on the Rds instance. Your private IP would not work.

profile picture
EXPERT
answered 7 months ago
profile picture
EXPERT
reviewed 7 months ago
  • Many thanks, the Db wa not publicly accessible. The option to make it publicly accessible was a bit hidden and i've learnt some network basic procedure: database should be made public and inbound flows filtered on my public IP, not the private one because i navigate through the internet. Thank your very much

0

Hello,

I've been adding my public address to my security group (following your recommendations).

Unfortunately i still get this answer after i typed this command line: mysql -h cryptoboss.ciugn9m0bdta.eu-west-1.rds.amazonaws.com -P 3306 -u cryptoboss -p Enter password:

ERROR 2003 (HY000): Can't connect to MySQL server on 'cryptoboss.ciugn9m0bdta.eu-west-1.rds.amazonaws.com:3306' (110)

Thank you!

answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions