连接141 老虎钱包数据库方法,可以连接成功(MYSQL)
1 import pymysql 2 conn = pymysql.connect(host='192.168.1.141', port=3306, user='local_xs', passwd='LFHA^K5s#a', db='db_exch_user',charset='utf8') 4 cursor = conn.cursor()
连接17金业数据库(SQL server)
import pyodbc conn = pyodbc.connect('DRIVER={SQL Server};SERVER=192.168.1.17;DATABASE=XS9999;UID=sa;PWD=xs9999.com') cursor = conn.cursor()