php连接mysql8.0报错,Server sent charset unknown to the client. Please, report to the developers


Server sent charset unknown to the client. Please, report to the developers

【问题】

php低版本连接Mysql高版本(比如Mysql8.0)

  Server sent charset unknown to the client. Please, report to the developers

【解决】

方法(1):升级php连接驱动程序

方法(2):把mysql8.0的 character_set_server 参数改成 utf8(不能在线改,需要修改my.cnf,然后重启mysql生效)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM