cakephp 3中的PDOException错误

时间:2017-07-03 10:18:09

标签: pdo cakephp-3.0

Cake php 3错误

Error Start:

Error: SQLSTATE[42000]: Syntax error or access violation: 1227 Access denied; you need (at least one of) the SUPER privilege(s) for this operation

If you are using SQL keywords as table column names, you can enable identifier quoting for your database connection in config/app.php.
Error End:

将本地站点移动到服务器时出现PDOException错误。我在app.php文件中启用了标识符引用。但什么都没发生。

enter image description here

1 个答案:

答案 0 :(得分:1)

我找到了解决方案。首先,我们需要在app.php中设置true,或者向用户授予grant权限。有关详细信息,请查看此博客。 http://www.peakhints.com/pdo-exception-error-cakephp-3/