- Code: Select all
import pymysql.cursors
# connect to the local database
conn = pymysql.connect(host='localhost',
port=8080,
unix_socket='/tmp/mysql.sock',
user='root',
password=None,
db='dbname',
charset='utf8',
cursorclass=pymysql.cursors.DictCursor)
Now with the VM version of XAMPP, I cannot figure out how to get it working. I hope someone has a solution.