centos中mysql數據庫中文亂碼的解決方法

默認my.cnf配置文件中在/etc/mycnf,打開之後在裏面加入以下命令即可: [client] default-character-set=utf8 [mysqld] character-set-server=utf8 collation-server=utf8_general_ci 然後保存之後別忘了重啓mysql數據庫,命令如下: systemctl restart mysql.serv
相關文章
相關標籤/搜索