Skip to content

Instantly share code, notes, and snippets.

@roscius
Created February 8, 2015 21:14
Show Gist options
  • Select an option

  • Save roscius/68ff71c0aa299afe9fa2 to your computer and use it in GitHub Desktop.

Select an option

Save roscius/68ff71c0aa299afe9fa2 to your computer and use it in GitHub Desktop.
Convert charset on old MySQL
mysqldump -uuser -ppassword --quote-names --skip-set-charset --default-character-set=latin1 $dbname > dump.sql
mysql -uuser -ppassword --default-character-set=utf8 $dbname < dump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment