Connecting Toad for MySQL to Amazon AWS EC2 using SSH Tunneling

1. Open your putty, Fill your EC2 Database Hostname, port, and under “Connection” -> “SSH” -> “auth”, Browse your AWS EC2 key.

Image

2. Under “Connection” -> “SSH” -> “Tunnels”, at Source Port, put your desired local port, for instance, port 3306 (NOTE : If there is MySQL server on your localhost, it is better to choose another port), then click Add.

Image

3. Then back to “Session”, and Save your setting by filling Save Sessions edit box.

4. On Toad for MySQL, click File -> New -> Connection, Choose Connection Type : TCP, Host : 127.0.0.1, User : <Your MySQL User>, Password : <Your MySQL Password>, Port : <Your Tunneling Port>

Image

5. Taraa !!! =)

Advertisements

5 thoughts on “Connecting Toad for MySQL to Amazon AWS EC2 using SSH Tunneling

  1. this is very useful. I am however getting an error “reading from the stream has failed” while trying to connect in the last step. Do you have any idea on this error.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s