【解決】Mysql字元集問題,解決mysql字元集

來源:互聯網
上載者:User

【解決】Mysql字元集問題,解決mysql字元集

[Author]: kwu

解決Mysql字元集問題

1、 vi /etc/my.cnf   增加以下內容

[client]port=3306  socket=/var/lib/mysql/mysql.sock  default-character-set=utf8[mysql]  no-auto-rehash  default-character-set=utf8[mysqld] port=3306 default-character-set=utf8 




2、重啟mysql生效
service mysqld restart

3、查看mysql的字元集

show variables like 'character_set%'



相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.