Skip to content

Instantly share code, notes, and snippets.

@carestad
Created October 5, 2012 22:12
Show Gist options
  • Save carestad/3842750 to your computer and use it in GitHub Desktop.
Save carestad/3842750 to your computer and use it in GitHub Desktop.
MySQL 5.X UTF-8 config
[client]
character-set-server = utf8
[mysqld]
character-set-server = utf8
collation-server = utf8_unicode_ci
character-sets-dir = /usr/share/mysql/charsets
#default-character-set = utf8
init-connect = 'SET NAMES utf8'
[mysql]
character-sets-dir = /usr/share/mysql/charsets
character-set-server = utf8
[mysqladmin]
character-sets-dir = /usr/share/mysql/charsets
character-set-server = utf8
[mysqlcheck]
character-sets-dir = /usr/share/mysql/charsets
character-set-server = utf8
[mysqldump]
character-sets-dir = /usr/share/mysql/charsets
character-set-server = utf8
[mysqlimport]
character-sets-dir = /usr/share/mysql/charsets
character-set-server = utf8
[mysqlshow]
character-sets-dir = /usr/share/mysql/charsets
character-set-server = utf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment