…constantly referring to the amazing MySQL manual, especially the option and variable reference table. …_tmp_tablesblogpercona.commanual datadirblogpercona.commanual date_formatblogpercona.commanual datetime_formatblogpercona.commanual debugblogpercona.commanual debug_syncblogpercona.commanual debug_…
Post: When is MIN(DATE) != MIN(DATE) ?
… INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, uid INT UNSIGNED NOT NULL, update_time DATETIME NOT NULL, …. INDEX `uid` (uid, update_time), INDEX `bar` (some… to force MySQL to use a different index. Imagine our surprise when we tried a FORCE INDEX on (bar) or an IGNORE INDEX(uid…
Post: Logging Foreign Key errors
… the information: CREATE TABLE foreign_key_errors ( ts datetime NOT NULL, error text NOT NULL, PRIMARY KEY (ts) ); 2- Run the tool as…”) ON DELETE CASCADE The index in the foreign key in table is “PRIMARY” See http://dev.mysql.com/doc/refman/5.5… by an index that was referenced by the FK, a PRIMARY KEY. So, the command that causes the error was: mysql> ALTER…
Comment: COUNT(*) vs COUNT(col)
…index | NULL | PRIMARY | 8 | NULL | 424672 | Using index | +—-+————-+————-+——-+—————+———+———+——+——–+————-+ 1 row in set (0.11 sec) mysql…
Post: Benchmarking single-row insert performance on Amazon EC2
… RAID 10. Now let’s come to the MySQL configuration. MySQL Configuration I used Percona Server 5.5.22-55 …index` ( `transactionid` int(11) NOT NULL AUTO_INCREMENT, `dateandtime` datetime DEFAULT NULL, `cashregisterid` int(11) NOT NULL, `customerid` int(11) NOT NULL, `productid` int(11) NOT NULL…
Comment: How to find wrong indexing with glance view
…not null, operator_id smallint unsigned not null, order_amount decimal(10, 4) not null, order_date datetime not null, last_updated timestamp not null …operators. MySQL will create the following indexes: unique index on order_id index on item_type_id index on locale_id index on currency_id index …
Post: Copying InnoDB tables between servers
…NULL, `ol_delivery_d` datetime default NULL, `ol_quantity` tinyint(4) default NULL, `ol_amount` decimal(6,2) default NULL… started. InnoDB: import: 2 indexes are detected. InnoDB: Progress in …. When finished quick check mysql> select count(*) from order_line; +———-+ | count(*) | +———-+ | …

