First check if you can make a connection. If you have a Linux client machine you can do this by trying:
telnet [your.mysqlserver.hostname.or.ip] 3306
assuming that you have a standard MySql instance running on port 3306.
If you can't connect check if the option 'skip-networking' in your MySQL config is off. If you skip networking you will not be able to connect from a remote host.
Then you should check if your firewall allows access on port 3306.
If everything else fails, but you can make an ssh connection to you server, you can do port forwarding and bypass the firewall:
Download putty (I like the Putty-tray version)
Now configure a connection with port forwarding as follows:
1. fill in the MySql server hostname or ip address
2.click open the connection->ssh->tunnels categroy (left-hand panel)
3.choose a source port, if you are NOT running a MySQL server on your pc, just use 3306
4.for the remote port choose 'localhost:3306'
5.choose the 'remote' radio button
6.click the 'add' button
Now go back to the 'session' category in the left-hand panel and type a name to remember this connection in the text field 'Saved sessions'. Now press the 'save' button.
Now as long as you have an ssh connection to your remote host, your MySql client can be configured to 'localhost' port 3306 as your MySql host and Putty will automagically forward it to the remote database at port 3306.






Reply With Quote




Bookmarks