最近在使用全量更新数据的时候想使用truncate table的时候,在测试环境没有任何问题,但是在生产线上环境出现了如下的错误:
drop command denied to XXXX....的错误,一开始很是奇怪,明明自己使用的truncate 但是为什么会出现drop的错误呢?
经过查找资料:
【参考】http://dev.mysql.com/doc/refman/5.1/en/truncate-table.html
Beginning with MySQL 5.1.32, TRUNCATE TABLE is treated for purposes of binary logging and replication as DROP TABLE followed by CREATE TABLE — that is, as DDL rather than