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