mysql Chinese garbled characters under Mac

The most reliable
http://www.cnblogs.com/mojita/p/5347614.html


has no configuration file by default on mac, you need to go to /usr/local/mysql/support-files directory to install mysql on mac Copy the configuration file template my-default.cnf to /etc, and change the file name to my.cnf

Find [client][mysqld] in my.cnf and add the following two sentences

~~~
[client]
default-character -set=utf8
[mysqld]
character-set-server=utf8

~~~

Then restart mysql:

other settings engine=innodb, make mysql not start

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326599292&siteId=291194637