Skip to content

Instantly share code, notes, and snippets.

@nexsales
nexsales / change_collation
Created September 2, 2014 09:07
Python script to change collation for multiple tables in a database
import MySQLdb
# MySQL Connection Parameters
MYSQL_USER=''
MYSQL_PASSWORD=''
MYSQL_DB=''
MYSQL_HOST=''
# Collation Information
OLD_COLLATION=''