Skip to content

Instantly share code, notes, and snippets.

@asfaltboy
Forked from yprez/5.1
Created December 1, 2012 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asfaltboy/4181118 to your computer and use it in GitHub Desktop.
Save asfaltboy/4181118 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