I have a python script that connects to a remote MySQL database using the python MySQLdb library. It works fine, but how can I connect it through the proxy server I work on. I can connect via command line in ssh, but how do I get a python script to use proxy settings. It seems that there are no parameters in MySQLdb commands for proxy configurations.
import MySQLdb as mdb
conn=mdb.connect(host='mysite.com',user='myuser',passwd='mypassword',db='mydb')
cursor = conn.cursor()
Nebyr source
share