Error:ALTER command denied to user 'xxxx'@'localhost' for table 'uc_notelist'
Errno:1142
SQL::ALTER TABLE uc_notelist ADD COLUMN app1 tinyint NOT NULL
说明xxxx用户没有ALTER权限。
到mysql中,
mysql> SELECT alter_priv FROM user WHERE User = 'xxxx';
发现alter_priv = 'N',果然没有权限。
修改权限:
mysql> UPDATE user SET alter_priv='Y' WHERE User = 'xxxx';
mysql> flush privileges;
Mysql Error 1142错误解决方法
点赞
收藏