Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to connect to my mysql server on aws ec2 ubuntu. I put in the public DNS for the server and user and password for root.

I can't get in, is there something special I have to do on the server side regarding ports or something? Thanks.

share|improve this question
up vote 1 down vote accepted

Are you trying to access MySQL directly over the internet? If so, that's a bad idea. Instead, just set mysql to listen on localhost and then access it via an ssh tunnel - this is much more secure.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.