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 réponses
2
Réponse acceptée

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
répondu il y a 7 mois
profile picture
EXPERT
vérifié il y a 6 jours
profile picture
EXPERT
vérifié il y a 7 mois
  • 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!

répondu il y a 7 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions