PORT = 3306. USER = "username of remote mysql instance". PASSWORD = "password of remote mysql instance". DB = "database name". try: connection = db.
python-connect-to-remote-mysql
We're accessing our database through an SSH tunnel, rather than via a regular encrypted socket. (The SSH connection will eventually require key pairs, and .... Example: how to connect to mysql database in python import mysql.connector cnx = mysql.connector.connect(user='scott', password='password', ... 939c2ea5af
python connect remote mysql
Comments