linux centos7 gateway 链接数据库出错 在win系统运营正常
client:114.102.189.20:18660 gateway:127.0.0.1:8282 client_id:7f0000010b57000000 01
exception 'PDOException' with message 'SQLSTATE Unknown character set: 'utf'' in /www/wwwroot/default/GatewayWorker/vendor/workerman/gateway-worke r/src/Lib/DbConnection.php:1709
Stack trace:
#0 /www/wwwroot/default/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Db Connection.php(1709): PDO->__construct('mysql:dbname=namedata', 'root', '11111. .', Array)
这个错误报告的很清楚了:
exception 'PDOException' with message 'SQLSTATE Unknown character set: 'utf''
使用了未知的无效字符编码 utf, 应该是 utf8 编码。
哎呀谢谢老大,你太牛了 谢谢 !把你微信发我 给你点报酬!