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;
时间: 2024-10-06 03:39:59