PHP用PDO调用MYSQL显示Server sent charset unknown to the client

PHP用PDO请求mysql报错:Server sent charset unknown to the client. Please, report to the developers

修改my.cnf的内容为如下

$ vim my.cnf 下面是内容

[client]
default-character-set=utf8

[mysql]
default-character-set=utf8

[mysqld]
collation-server = utf8_unicode_ci
character-set-server = utf8
default_authentication_plugin = mysql_native_passwor

 

showtooltip

上一篇:挂载硬盘,提示 mount: unknown filesystem type 'LVM2_member'的解决方案


下一篇:mysql8.0使用mysqldump报错:Unknown table ‘column_statistics‘ in information_schema (1109)