mysql:Code: 1142. REFERENCES command denied to user 'php'@'localhost'

    错误分析:需要给‘php’@‘localhost’用户 REFERENCES 权限。

    解决方案:

use mysql;

grant REFERENCES on php_db.* to 'php'@'%';

     这样操作后,记得重新登录。

猜你喜欢

转载自blog.csdn.net/hefrankeleyn/article/details/85235848