MySQL Forums
Forum List  »  MySQL Query Browser

MySQL Query Browser through ssh tunnel - error 2002
Posted by: Dimitar Dinchev
Date: September 10, 2007 01:15AM

I'm trying to get mysql query browser to work through a ssh tunnel. The connection is OK, I'm able to log, but then when I try to connect on localhost with the query browser it returns me error 2002...
I open the tunnel this way...

ssh -L 3306:193.228.152.2:3306 admin@193.228.152.2

And this is the exact error message...

Could not connect to host 'localhost'.
MySQL Error Nr. 2002
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

If I click on "ping host", I do get a ping. I also don't have mysql server on my machine, so port 3306 is OK (anyway I've tried to open the tunnel and log on other ports with no success)...

Been searching for a solution for quite some time and I'm really desperate because if I don't figure it out I'll have to work with the console...

Thanks in advance!

Options: ReplyQuote


Subject
Written By
Posted
MySQL Query Browser through ssh tunnel - error 2002
September 10, 2007 01:15AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.