鍍金池/ 問答/PHP  數(shù)據(jù)庫/ phpMyAdmin登陸問題

phpMyAdmin登陸問題

剛才在mac上配置了一下php環(huán)境,apache,php,mysql都設(shè)置好了,在設(shè)置phpMyAdmin后登陸出現(xiàn)問題,現(xiàn)實(shí)無法登陸MySQl服務(wù)器,錯誤提示為
mysqli_real_connect(): Server sent charset (255) unknown to the client. Please, report to the developers
mysqli_real_connect(): (HY000/2054): Server sent charset unknown to the client. Please, report to the developers
請問是什么原因?qū)е碌模?/p>

回答
編輯回答
伐木累

charset 問題。建議全用utf-8

2017年4月6日 10:38
編輯回答
心夠野

修改服務(wù)端編碼

編輯文件vi /etc/mysql/mysql.conf.d/mysqld.cnf,添加以下內(nèi)容

[mysqld]
port=3306
character-set-server=utf8

[mysql]
default-character-set=utf8

[client]
default-character-set=utf8
2017年5月30日 01:04