mysql中通过my.cnf设置默认字符集utf-8

  1. [client]
  2. default-character-set=utf8

  3. [mysql]
  4. default-character-set=utf8

  5. [mysqld]
  6. init_connect='SET collation_connection = utf8_unicode_ci'
  7. init_connect='SET NAMES utf8'
  8. character-set-server=utf8
  9. collation-server=utf8_unicode_ci
  10. skip-character-set-client-handshake
posted @ 2022-09-23 18:03  silentmuh  阅读(172)  评论(0编辑  收藏  举报
Live2D