Trying to Set Up SSH Tunneling To MySQL Server for MySQL Query Browser

Posted by Teno on Super User See other posts from Super User or by Teno
Published on 2012-09-24T21:38:59Z Indexed on 2012/09/24 21:40 UTC
Read the original article Hit count: 453

Filed under:
|
|
|
|

I'm trying to set up SSH tunneling on a remote web server to another MySQL server so that the database can be browsed easily with MySQL Query Browser. I'm following this page but cannot connect to the MySQL server. http://www.howtogeek.com/howto/ubuntu/access-your-mysql-server-remotely-over-ssh/

What I've done:

  1. logged in to the web server with Putty via SSH.
  2. typed ssh -L 33060:[database]:3306 [myusername]@[webserver_address] where [...]s are altered by the actual information.
  3. I was asked a password and typed it and got the following message. So it seems login was successful.

    socket: Protocol not supported

    Last login: .... 2012 from .... Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved.

    FreeBSD 7.1-RELEASE....

    Welcome to FreeBSD!

  4. Opened MySQL Query Browser in Windows and entered

Server Host: localhost Port: 33060 UserName: myusername PassWord: mypassword

And it says,

Could not connect to the specified instance.
MySQL Error Number 2003
Can't connect to MySQL Server on 'localhost' (10061)

Sorry if this is too basic. Thanks for your information.

© Super User or respective owner

Related posts about ssh

Related posts about mysql