June 19, 2013

Post: Ultimate MySQL variable and status reference list

MySQL manual, especially the option andinsert_buffer_sizeblogpercona.commanual Bytes_receivedblogpercona.commanual Bytes_sentblogpercona.commanual character_set_clientblogpercona.commanual character_set_client_handshakeblogpercona.commanual character_set_connectionblogpercona.commanual character_set

Post: MySQL Indexing Best Practices: Webinar Questions Followup

AND string=’string’ The other thing you need to consider is string comparison in MySQL isslow down your inserts and make primary key significantly fragmented. I also would note there are some MySQL

Post: Slow Query Log analyzes tools

INSERT IGNORE INTO articles (id, body,)VALUES(3558268,’sample text’); Filtering Slow Query Log – Especially after the changes to log all queries slow query… this tool set ? First be aware this patch to MySQL is not official and should be used with caution. We think it is pretty safe…

Post: Identifying the load with the help of pt-query-digest and Percona Server

is the ability to enable logging atomically, not just for new connections as in MySQL. This isis set the variable log_slow_verbosity to ‘full’, this variable is available in Percona Server and… 0.0002 1.00 0.00 INSERT poller_output # MISC 0xMISC 0.8137… tt ON tt.term_id = t.term_id INNER JOIN wp_term_…

Post: Beware of MySQL Data Truncation

slow. So how to avoid this problem ? It is actually quite easy – you just need to enable strict mode: mysql> set sql_mode=STRICT_ALL_TABLES; Query OK, 0 rows affected (0.00 sec) mysql> insert

Post: Percona XtraDB Cluster: Multi-node writing and Unexpected deadlocks

is pretty tricky, and all that extra network traffic would really slow… test on and insert some data: node2 mysql> create…and attempt to modify the same row: node1 mysql> set autocommit=off; Query OK, 0 rows affected (0.00 sec) node1 mysqlMySQL thread id 3972, OS thread handle 0x7fddb84e0700, query id

Post: The perils of InnoDB with Debian and startup scripts

slow on this machine, so we need to stop the buffer pool andinsert into tableB… | 6322 | user | update | insertIDs, and that one ismysql tables in use 7, locked 0 MySQL thread id 6424, query id 1579718 10.255.106.47 user statistics And correlating the thread ID

Post: InnoDB: look after fragmentation

idinserted not in order. +—————————+ | count(distinct username) | +—————————+ | 5903053 | +—————————+ 1 row in set (2 min 8.92 sec) mysql

Post: SHOW INNODB STATUS walk through

is scheduled next time object will be free already. OS Waits are relatively slow, andMySQL thread id 9697561, query id 188161264 localhost root update insertis in “Sleep” stage – if it is multiple statement transaction. Innodb also will print OS thread_id and process id