MySQLdb + SSH Tunnel

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Jul 13 13:27:33 CEST 2009


In message <mailman.3035.1247427709.8015.python-list at python.org>, Emile van 
Sebille wrote:

> ssh with something like...
> 
> ssh -lroot -L3306:C:3306 B
> 
> Watch out for other instances of mysql on A or B...

You can use a non-default local port and specify that in your local 
connection parameters. Similarly you can tell the remote server to use a 
non-default port in its /etc/my.cnf.




More information about the Python-list mailing list