PyMySQL3Pure Python MySQL Driver | |
Download |
PyMySQL3 Ranking & Summary
Advertisement
PyMySQL3 Tags
PyMySQL3 Description
Pure Python MySQL Driver PyMySQL3 is a pure Python MySQL client provides a DB-API to a MySQL database by talking directly to the server via the binary client/server protocol.Example:import pymysqlconn = pymysql.connect(host='127.0.0.1', unix_socket='/tmp/mysql.sock', user='root', passwd=None, db='mysql')# conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd=None, db='mysql')cur = conn.cursor()cur.execute("SELECT Host,User FROM user")# print cur.description# r = cur.fetchall()# print r# ...or...for r in cur: print rcur.close()conn.close() Requirements: · Python
PyMySQL3 Related Software