… schema changes are automatically picked …AUTO_INCREMENT, PRIMARY KEY (`parent_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 CREATE TABLE `child_A` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT…incrementing column names in tables, and tables with the string NULL instead of the actual SQL NULL value…
Post: Replication in MySQL 5.6: GTIDs benefits and limitations - Part 1
… works only if all servers have the same value for gtid_mode, so you should restart them…not on slave #2: # slave #1 mysql> change master to master_auto_position = 1; mysql> start slave; and let…mysql> create table test.t (id int not null auto_increment primary key); Executing SHOW TABLES FROM test on…
Post: Avoiding auto-increment holes on InnoDB with INSERT IGNORE
… gaps on auto-increment columns? Secondly, I will show you a trick to mimic the INSERT IGNORE behaviour without losing auto increment values. Let’s start! Why do we have gaps? InnoDB checks an auto_increment counter on the table and if a new value…, if this saves you from doing an ALTER TABLE to change the auto incremental column size, then send him a beer ![]()
Post: AUTO_INCREMENT and MERGE TABLES
…row will cause auto_increment value to be reused too. Can you use AUTO_INCREMENT clause in CREATE TABLE to get different auto_increment values ? I guess not…TABLE may continue having old file descriptors open not seeing changes done to original table: mysql> select * from am; +—–+ | i | +—–+ | …
Comment: Hacking to make ALTER TABLE online for certain changes
… “DROP TABLE IF EXISTS `dbname`.`tablename`;” 5. change `dbname`.`tablename` -> `dbname`.`tablename2` 6. change auto_increment value at the last line 7. execute 8. shutdown…
Post: Hacking to make ALTER TABLE online for certain changes
…, adding auto_increment does not work that way. Enum values (add and remove). Enumerated values are added and removed the same way that auto_increment is… is that changing a comment does not to require table to be rebuilt, while things like removing auto_increment or changing a default value still…
Post: Edge-case behavior of INSERT...ODKU
… demonstration table – INT UNSIGNED. Do the math. The maximum value for an auto-increment INT UNSIGNED is 4294967295. Divide that by 1500 qps… is, of course, a trivial solution to this: just change the AUTO-INCREMENT column to use a BIGINT, and problem solved. As it… do we learn here? It’s easier to burn through AUTO_INCREMENT values than you might think; the original customer table in question…
Post: MySQL Users Conference - Innodb
… to count exact number of auto increment values needed or if we get behavior change by having potential “holes” when auto increment values are assigned but never… have to allocate sequential auto increment values if row level replication is used. This however will be again behavior change to watch out for…
Post: Efficient Boolean value storage for Innodb Tables
…data_length: 1970324836974591 Index_length: 1024 Data_free: 0 Auto_increment: NULL Create_time: 2008-04-24 00:41:01…to work with. Using NULL as one of flag values means you can’t use normal “=” comparison operator …in set (0.22 sec) Should you go and change all flags to use this approach ? I do not…

