Created
November 8, 2016 07:10
-
-
Save mikemadisonweb/06276614e29bea8f7131974b7d9fe426 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql --database=dbname -B -N -e "SHOW FULL TABLES WHERE Table_Type = 'BASE TABLE'" | awk '{print "ALTER TABLE", $1, "CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;"}' | mysql --database=dbname & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment