30

mysql8.0版本修复自增列值重复利用情况(修复bug#199)-笨小孩的dba之路

 5 years ago
source link: http://blog.51cto.com/fengfeng688/2141772
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
注意:mysql8.0之前的版本,InnoDB存储引擎的表自增id可能出现重复利用的情况。    这在很多场景下可能导致问题,包括但不限于:主备切换、历史数据迁移等场景。在bug#199下面一大堆的回复里,可以看到大量的同行抱怨。如,假设t1有个历史表t1_history用来存t1表的历史数据,那么mysqld重启前,ti_history表中可能已经有了(2,2)这条数据,而重

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK