May 25, 2012

Post: InnoDB's gap locks

…space id 19 page no 3 n bits 80 index `GEN_CLUST_INDEX` of table `test`.`t` trx …with the replication you should change the binary log format to “row”. Depending on the statement, …innodb-locks-set.html. Conclusion MySQL uses REPEATABLE READ as the default isolation level so it needs to lock the index

Post: SHOW INNODB STATUS walk through

… LOCKS space id 0 page no 16403 n bits 72 index `PRIMARY` of table `test/iz` trx id…InnoDB 500 mysql tables in use 1, locked 1 3 lock struct(s), heap size 368, undo log entries 1 MySQL… pretty much insert buffer efficiency. Adaptive hash index is hash index Innodb builds for some pages to speed up…

Post: How Percona does a MySQL Performance Audit

… of the OS and hardware. [percona@db1 ~]$ tail -n 25 /proc/cpuinfo power management: processor : 7 vendor_id …is easy to miss, as is the absence of innodb_log_file_size. I won’t give you a …for default users in the mysql.* tables, running mk-duplicate-key-checker to find redundant indexes, and so on. …

Post: InnoDB thread concurrency

mysql calls storage engine’s methods: read_row (there are a couple of methods like read by indexlog volume you might want to play with larger values such as 20. If innodb_log

Post: Beware the Innodb Table Monitor

… mysqld.err log to verify if the problem still existed. The Innodb Table Monitor has existed for basically forever in Innodb (the MySQL manual… the Data dictionary to the mysql error log, which looks something like this: =========================================== 090420 12:09:32 INNODB TABLE MONITOR OUTPUT =========================================== ————————————– TABLE: name… DB_TRX_ID DB_ROLL_PTR FOR_NAME REF_NAME N_COLS INDEX: name FOR_IND, id 0 12, fields 1/2…

Post: Recovering Innodb table Corruption

index_get_page(index)) InnoDB: We intentionally generate a memory trap. InnoDB: Submit a detailed bug report to http://bugs.mysql.com. InnoDBinnodb_force_recovery modes to block purging activity, insert buffer merge or recovery from transactional logs

Post: MySQL Binaries Percona build10

…were added: | slow_query_log | ON | | slow_query_log_file | /var/lib/mysql/slow_query.log | for compatibility with MySQL 5.1 and | userstat_…TABLE/INDEX statistics | V2 | Google | GPL | Added INFORMATION_SCHEMA.*_STATISTICS | | show_patches.patch | SHOW PATCHES | 1.0 | Jeremy Cole | N/A | | | innodb_…

Post: Connecting orphaned .ibd files

…ll get an error in the log: InnoDB: Error: tablespace id is 10 in the data dictionary InnoDB: but in file ./sakila/…actor’s indexes: mysql> select * from INNODB_SYS_INDEXES WHERE TABLE_ID = 13G *************************** 1. row *************************** TABLE_ID: 13 ID: 15 NAME: PRIMARY N_FIELDS: …

Post: INSERT INTO ... SELECT Performance with Innodb tables.

…recovery, so use innodb_locks_unsafe_for_binlog option with caution. Note disabling binary logs is not enough… LOCKS space id 0 page no 33504 n bits 328 index `j` of table `test/sample` trx id…declared inside InnoDB 3 mysql tables in use 1, locked 1 2539 lock struct(s), heap size 224576 MySQL thread…

Post: How to load large files safely into InnoDB with LOAD DATA INFILE

InnoDB DEFAULT CHARSET=utf8 Here’s the result of loading the entire 4GB file in one chunk: time mysql… by ‘\t’ lines terminated by ‘\n‘ (col1, col2);” sleep 1; done … you should expect for B-Tree indexes. The two curves on the … Unfortunately I didn’t think to log the “cool-down period” after the…