June 19, 2013

Post: A recovery trivia or how to recover from a lost ibdata1 file

column. With a modified schema, the recovery completed. The customer was able to download the tables in MyISAM format and then he just convert

Post: MySQL Indexing Best Practices: Webinar Questions Followup

to convert sort to the union for small ranges. Q: In the case of a junction tablehow mysql use index for group by? A: If you have Index on the column MySQL can avoid temporary table

Post: How to recover deleted rows from an InnoDB Tablespace

to the error log. mysql (employees) > CREATE TABLE innodb_table_monitor (id int) ENGINE=InnoDB; TABLE: name employees/salaries, id 18, flags 1, columnstable_defs.h so it will be necessary to recompile the tool. To help us in the task of converting the schema definition to

Post: TMP_TABLE_SIZE and MAX_HEAP_TABLE_SIZE

to it you should increase tmp_table_size to appropriate value and avoid using blob/text columns which force tabletable after which it will be converted to MyISAM. To make things more confusing this is not what you would read in MySQL

Post: Flexviews - part 3 - improving query performance using materialized views

to convert SQL to the Flexviews API (see convert.php below) Refresh methods The incremental refresh method The incremental refresh method uses tablehow you can use this summary to calculate the number of lines in the order_lines table, three orders of magnitude more quickly than COUNT(*). mysql

Comment: Database problems in MySQL/PHP Applications

to do row lookups by multiple columns of varchars is likely. Don’t do it. I can think ofof MySQL. If nothing else, it makes replicating a subset of the data much easier. > Regarding if you use many tablesof converting your varchars to chars for example), then having to

Post: InnoDB Full-text Search in MySQL 5.6: Part 2, The Queries!

to create an *InnoDB* table with a single VARCHAR column named “value”. OK, sounds easy enough: mysql: SHOW CREATE TABLE innodb_myisam_stopword\G *************************** 1. row *************************** Tableto take the MyISAM full-text parser code, convert it to

Post: Innodb row size limitation

mysqlconverting from a native language character set totable definition, but at row insertion. You may just have a table with 50 variable length columnscolumns aren’t requested as part of a row-read, they don’t have to be touched at all. Of

Post: Timezone and pt-table-checksum

to a default value of CURRENT_TIMESTAMP.  From the manual, here is how MySQL handles timezone locality with timestamp fields: Values for TIMESTAMP columns are convertedto get the actual rows in need of syncing, it will not find those rows even though pt-table-checksum reported the chunk as out of

Post: Lost innodb tables, xfs and binary grep

how data was lost: MySQL had a dedicated partition on XFS file system Server was running innodb_file_per_tableto have a lot of data to scan and you have toof percona recovery toolset, with some additional converters so we can match against various date/time columns