Showing posts with label mysql. Show all posts
Showing posts with label mysql. Show all posts

Monday, May 11, 2009

How to configure mysql server to use utf8 character set

Go to the [mysqld] section in my.cnf and add two strings:

collation_server=utf8_unicode_ci
character_set_server=utf8

You can also add

skip-character-set-client-handshake

to enforce using of utf8 encoding in db.