Skip to content

Instantly share code, notes, and snippets.

@hlassiege
Created May 3, 2018 09:30
Show Gist options
  • Save hlassiege/e78ee2a3b66dc15bb248f863e3335746 to your computer and use it in GitHub Desktop.
Save hlassiege/e78ee2a3b66dc15bb248f863e3335746 to your computer and use it in GitHub Desktop.
mysqlpythonconnection.txt
import MySQLdb
db = MySQLdb.connect(host=DB_HOST ,user=DB_USER ,passwd=DB_PASS,db=DB_NAME, charset = "utf8", use_unicode = True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment