杨庆荣的博客

工作之余接单:公司产品展示网站建设、电商网站建设、小程序、app开发。+86 13714715608

Cannot the connect to Database with PDO. SQLSTATE[42000]: Syntax error or access violation: 1253 COLLATION 'utf8mb4_unicode_ci' is not valid for CHARACTER SET 'utf8'

点击 1852    创建时间 2011-07-08 08:57:32


Cannot the connect to Database with PDO. SQLSTATE[42000]: 
Syntax error or access violation: 
1253 COLLATION 'utf8mb4_unicode_ci' is not valid for CHARACTER SET 'utf8'

解决办法:utf8改成utf8mb4。

set names 'utf8mb4'

上一篇: 量价指标
下一篇: 记一次windows修改用户文件夹所在位置