Python數據庫鏈接池DBUtils.PooledDB

1. 未使用鏈接池鏈接mysqlpython import MySQLdb conn = MySQLdb.connect(host = '127.0.0.1', user ='user1', passwd = 'your-password', db ='db1', port = 3306) cur = conn.cursor() SQL ="select * from t1" r = cur.
相關文章
相關標籤/搜索