Mayfield Global Knowledge Center



How do I connect to a MySQL database using MySQL Administrator via putty using SSH?

  1. Download and run putty.exe.
    putty icon
  2. From the Category pane, locate and click Tunnels.
    Tunnels Config
  3. For the Port forwarding options, type the Source port (the default port is 3306), then type the target domain and port number in the Destination field (e.g. mysql.yourdomain.com:3306). Click Add.
    Tunnels Config 2
  4. From the Category pane, locate and click Session.
    Putty Session Config 1
  5. In the Host Name field type your SSH host name. In the Port field type 22. Ensure that SSH is selected for the Protocol. In the Saved Sessions field type a descriptive name for your session (e.g. MySession) then click Save.
    Putty Session Config 2
  6. Select the newly created session then click Load. Click Open to connect to the host.
    Putty Session Config - Open Saved Session
  7. When prompted to add the server host key, click Yes.
  8. Type your username and password when prompted.
    Putty Login - Main
  9. Once you have successfully logged in, minimize the putty application then start MySQL Administrator.
  10. In the Server Host field type localhost. Type 3306 in the Port field. Type your MySQL username and password then click OK.
    MySQL - Main Logon Screen
  11. Congratulations, you have successfully established a secured connection to your MySQL server via SSH.
    MySQL Administrator Connected to Sever

Would you like to...


del.icio.us

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favoritesAdd to favorites

User Opinions (6 votes)

83% thumbs up 16% thumbs down

How would you rate this answer?

Helpful
Not helpful
Thank you for rating this answer.