Skip to content

Instantly share code, notes, and snippets.

@yprez
Created December 1, 2012 08:11
Show Gist options
  • Save yprez/4181067 to your computer and use it in GitHub Desktop.
Save yprez/4181067 to your computer and use it in GitHub Desktop.
MySQL set unicode as default
[mysqld]
default-character-set=utf8
default-collation=utf8_general_ci
character-set-server=utf8
collation-server=utf8_general_ci
init-connect='SET NAMES utf8'
[client]
default-character-set=utf8
[mysqld]
#default-character-set=utf8
init_connect='SET collation_connection = utf8_general_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_general_ci
skip-character-set-client-handshake
[client]
default-character-set=utf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment