June 18, 2013

Post: Migrating between MySQL schemas with Percona Xtrabackup

table structures:  mysqldump –no-data orig > /tmp/orig.schema.sql Create the new target database:  mysqladmin create… grant access to another “backup” server. As …FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=’orig’ AND ENGINE=’InnoDB’; EOF For full disclosure, here are the versions I was using

Post: How to recover table structure from InnoDB dictionary

CREATE TABLE crashes MySQL There is yet another source of information about the table structure – InnoDB dictionary. Let’s review tables fromCREATE TABLE statement. 0. Download the latest revision of the recovery tool bzr branch lp:percona-data

Post: Percona Server 5.5.30-30.2 rerelease fixes non-restart issue

… bad changed page data. Bug fixed #1108613 (Laurynas Biveinis). Ported a fix from MariaDB for the upstream bug #63144. CREATE TABLE or CREATE TABLE IF NOT… allocator is used. Bug fixed #1131187 (Alexey Kopytov). Removed trx_list scan in read_view_open_now() which is another problem originally…

Post: Percona Server for MySQL 5.5.30-30.2 now available

… bad changed page data. Bug fixed #1108613 (Laurynas Biveinis). Ported a fix from MariaDB for the upstream bug #63144. CREATE TABLE or CREATE TABLE IF NOT… allocator is used. Bug fixed #1131187 (Alexey Kopytov). Removed trx_list scan in read_view_open_now() which is another problem originally…

Post: Understanding the maximum number of columns in a MySQL table

…an 80×24 text UI for entering data and a separate UI for … options ‘Y’ and ‘N’ will use less space in the FRM…create table ‘test.t’ (errno: 139)”. This is because InnoDB has a hard limit of 1,000 columns. This is the code fromcreate a table with a few more columns in InnoDB! This led me on another

Post: Announcing Percona XtraBackup 2.1.1 GA

…available from …large datatables when rebuilding the index. Percona XtraBackup has implemented Encrypted Backups. This feature can be used to encrypt/decrypt both local and streamed backups in order to add another layer of protection to the backups. innobackupex now uses… not creating xtrabackup…

Post: InnoDB Full-text Search in MySQL 5.6 (part 1)

use of MyISAM FTS, the idea of a complete or partial migration was, for one reason or anotherCREATE TABLE `…data, and then creating the FT index after the datatable_name | | | use_stopword | 1 | | table_state | 0 | +—————————+———+ 10 rows in set (0.00 sec) mysql> delete from

Post: Hacking to make ALTER TABLE online for certain changes

from the table. As a rule of thumb, this usually involves altering huge InnoDB tables and huge tablescreate another table with desired table structure and switch .frm table definition files. For safety, I’d recommend to flush tables

Post: A case for MariaDB's Hash Joins

Table Structure Before moving on, let’s take a look at the structure of the tables involved in the benchmark tests. CREATE TABLEfrom supplier table (left operand). Test Case D – Join a large data set (>1M rows) from one table with a large table The SQL used