search

Home  >  Q&A  >  body text

Mysql under Mac does not support Chinese and the configuration file does not have a my-default.cnf file

1. My mysql does not support Chinese. I am preparing to change the encoding according to the online method, but I cannot find the
my-default.cnf file of mysql.
2. What should I do now? Let mysql support Chinese?

ringa_leeringa_lee2809 days ago778

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-05-18 10:54:03

    The problem has been solved http://www.jianshu.com/p/628b...

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-18 10:54:03

    MySQL 5.7.18 now has no default file. Create my.cnf yourself.
    Should it support Chinese? My CentOS 7 Minimal version supports it.
    When you say it is not supported, do you mean that you directly check whether it is supported on the MAC command line (or terminal?)?
    Try SET character_set_client = utf8 first (php is $mysqli->set_charset('gbk'); or utf-8).
    If it’s still the same, then I guess the system doesn’t support it? Try using other tools, such as phpmyadmin (requires php), Navicat, SQLyog, etc.

    reply
    0
  • Cancelreply