Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 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.