删除记录时提示需要SELECT 权限

(1143, "SELECT command denied to user 'test_delete'@'localhost' for column 'id' in table 'agent_info'")

参考

https://stackoverflow.com/questions/22580529/mysql-duplicate-entry-error-when-trying-to-add-new-column

修改表增加行时提示主键有重复记录

其实没有,是因为5.6开始支持在线修改表结构。向新表追加dml log时会出现空洞重复

参考

https://bugs.mysql.com/bug.php?id=76895