Currently we are using the following commands in PHP to set the character set to UTF-8 in our application.
Since this is a bit of overhead, we\'d like to set this a
If you are confused by your setting for client and conn is reseted after restart mysql service. Try these steps (which worked for me):
vi /etc/my.cnf
:wq
[client]
character-sets-dir=/usr/local/mysql/share/mysql/charsets
status;
, you'll find the character-set for 'client' and 'conn' is set to 'utf8'.Check the reference for more info.