讓mysql支持中文

環境 linux:cnetos7 mysql:5.7mysql 咱們來看看一看默認的mysql字符編碼linux show variables like '%character%'; 能夠看見咱們database 和server使用的是latin1的字符編碼。而這個字符編碼是不支持中文的。因此哦咱們要修改這兩個字符編碼爲utf-8;(/etc/my.cnf或者/etc/mysql/my/cnf)w
相關文章
相關標籤/搜索