SQLSTATE[42000]: Syntax error or access violation 出现这种问题 直接修改my.cnf 即可 在mysqld下面添加sql_mode="" 然后保存 -》重启mysql