DreamHost Web Hosting
Discussion Forum


Forums
   >> General Troubleshooting
Return to the search engineFlat Mode*

Subject Re: Tunneling MySQL over SSH [re: Juicy]  
Posted byShiva (DH New User )
Posted on05/28/06 10:01 PM


I just got this working yesterday.

First, I connected to my shell account like this:
ssh -L8888:mydbhost.mydomain.com:3306 myshelluser@mydomain.com

Then I connected to their server like this:
mysql -u mydbuser -p -h 127.0.0.1 -P 8888

These parameters also worked using a GUI frontend (CocoaMySQL beta for MacOS X). You have to use 127.0.0.1 instead of 'localhost' or the server will refuse to let you in.

I hope this helps!




 
Entire thread
Subject  Posted byPosted on
*Tunneling MySQL over SSH  Juicy05/23/06 11:51 PM
.*Re: Tunneling MySQL over SSH  matttail05/24/06 09:47 AM
.*Re: Tunneling MySQL over SSH  guice05/24/06 08:42 AM
.*Re: Tunneling MySQL over SSH  Juicy05/28/06 06:08 PM
..Re: Tunneling MySQL over SSH  Shiva05/28/06 10:01 PM
.*Re: Tunneling MySQL over SSH  PGNet02/25/09 10:21 AM
.*Re: Tunneling MySQL over SSH  Shiva02/25/09 01:27 PM
.*Re: Tunneling MySQL over SSH  Juicy05/28/06 10:49 PM
Jump to