SQLSTATE[HY000] [2054] Server sent charset unknown to the client. Please, report to the developers

php7.1.4不行php7.1.28就可以

结论: 升级php版本