Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to connect to MySQL server from my dev machine(win 7) using 'Toad for MySQL'. MySQL server is located on AMI windows instance(amazon ec2). I have had success earlier with dedicated servers from godaddy. I'm asked to evaluate Amamzon ec2 for my company.

  1. This is my ami-161b5c44.
  2. I have setup an elastic IP and allocated the ip to the above instance.
  3. I have added the following rules in addition to default security group: 22(ssh),80(http),3306(mysql),3389(rdp)
  4. Granted all privileges to the user(root) in MySQL.
  5. Changed the mysql config file to bind to 0.0.0.0
  6. Added a rule in windows firewall to allow inbound requests to mysql.exe on port 3306
  7. In toad: connection type: TCP, Host(ip), user:root, password:*,Database:name_db, port:3306.

When I hit connect I get this on toad: "MySQL Database Error: Unable to connect to any of the specified MySQL hosts."

Any help is much appreciated.

Regards, Rohith

share|improve this question
add comment

1 Answer

Fixed it. Windows firewall add rule config issue. I just let all inbound ips to connect to port 3306 and not from a specific ip.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.