Skip to content

Instantly share code, notes, and snippets.

View afit's full-sized avatar

Aidan Fitzpatrick afit

View GitHub Profile
@afit
afit / update_tables_to_utf8.py
Created July 6, 2017 13:45
Convert all MySQL tables to UTF-8 w/ general CI
#!/usr/bin/env python
import warnings
warnings.simplefilter("ignore", DeprecationWarning)
warnings.filterwarnings("ignore", ".*Module _mysql was already imported.*")
warnings.filterwarnings("ignore", ".*Module timezones was already imported.*")
import os, sys
sys.stdout = sys.stderr