June 19, 2013

Post: Migrating between MySQL schemas with Percona Xtrabackup

…schemas. One of the downsides to mysqldump is the need to scan the full tables and in turn, load that data into and…InnoDB’; EOF mysql -N -B <<'EOF' > import-ddl.sql SELECT CONCAT(‘ALTER TABLE `’, table_name, ‘` IMPORT TABLESPACE;’) AS _ddl FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA=’orig’ AND…

Post: Experiences with the McAfee MySQL Audit Plugin

MySQL  has traditionally been challenging. Most data can be obtained from the slow or general log, but this involves a lot of dataMySQL internals can enlighten me here. – audit_record_objs : List of database objects (tables,… one for me, since I think proper audit trail support has been an important

Post: MySQL and the SSB - Part 2 - MyISAM vs InnoDB low concurrency

… Peter blogged about the importance of performance at low concurrency…pages from the buffer pool should be faster than getting them from…SSB Flight #4 There is one query in this flight, Q4…TABLE ENABLE KEYS. my.cnf [mysqld] datadir=/mnt/mysql56/data basedir=/usr/local/mysql socket=/var/lib/mysql/mysql

Post: Percona XtraBackup 2.0.7 for MySQL available for download

imported by ALTER TABLE IMPORT TABLESPACE on MySQL and Percona Server 5.6 as described in Exporting and Importing Tablesdata in the log copying thread which could cause XtraBackup to crash. Bug fixed #1166888. Package dependency has been changed from abstract mysql

Post: Percona XtraBackup 2.1.0 'release candidate' for MySQL available for download

… are available from our download …imported by ALTER TABLE IMPORT TABLESPACE on MySQL and Percona Server 5.6 as described in Exporting and Importing Tablestables. Bug fixed #1169169. Tables that were dropped between taking a full backup and an incremental one… handling the innodb_data_file_path…

Comment: MySQL Partitioning - can save you or kill you

important use case for PARTITIONing (“uneven reads”, Re: #1); let me rephrase the use case — * The entire tableone partition. In one instance, I take advantage of that — I have 10 years of dataMySQL. PARTITIONs are scanned one

Post: How to recover a single InnoDB table from a Full Backup

data from one table. In this case we’re going to delete the salary information from the user 10008: mysql> SELECT * FROM

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

…a transfer from one SAN to another, something went wrong and they lost the ibdata1 file, where all the table meta-data is …mysql/recover/ chown mysql.mysql /var/lib/mysql/recover/$CURRENT_TABLENAME.ibd sleep 1 echo “importing tablespace” mysql -u root -e “alter table recover.$CURRENT_TABLENAME import

Post: How to recover deleted rows from an InnoDB Tablespace

table row format from the Information Schema: mysql (information_schema) > SELECT ROW_FORMAT from TABLES WHERE TABLE_SCHEMA=’employees’ AND TABLEimport it in our database: mysql (employees) > LOAD DATA INFILE ‘/root/recovery-tool/data/salaries.recovery’ REPLACE INTO TABLE

Post: Data mart or data warehouse?

one or more data transformations is usually called a “flow”. An example ETL flow might combine data fromdata to the source tables. The goal of this methodology is the 100% accurate description of historical data from