Skip to content

Instantly share code, notes, and snippets.

@kezabelle
Created September 9, 2013 13:08
Show Gist options
  • Save kezabelle/6495356 to your computer and use it in GitHub Desktop.
Save kezabelle/6495356 to your computer and use it in GitHub Desktop.
an attempt to document a 'perfect' connection string for MySQL.
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'OPTIONS':{
"init_command": "SET storage_engine=INNODB, collation_connection='utf8_unicode_ci', sql_mode='TRADITIONAL', NAMES 'utf8';",
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment