MySQL 5.7 multi-source replication
Recently Oracle announced several new features for the latest available development version of MySQL that is 5.7.2 at the time of writing this article. Most of them are performance and replication...
View ArticleInexpensive SSDs for Database Workloads
The cost of SSDs has been dropping rapidly, and at the time of this writing, 2.5-drives have reached the 1TB capacity mark. You can actually get inexpensive drives for as little as 60 cents per GB....
View ArticleHow can we bring query to the data?
Baron recently wrote about sending the query to the data looking at distributed systems like Cassandra. I want to take a look at more simple systems like MySQL and see how we’re doing in this space.It...
View Articleutf8 data on latin1 tables: converting to utf8 without downtime or double...
Here’s a problem some or most of us have encountered. You have a latin1 table defined like below, and your application is storing utf8 data to the column on a latin1 connection. Obviously, double...
View ArticleInnoDB scalability issues due to tables without primary keys
Each day there is probably work done to improve performance of the InnoDB storage engine and remove bottlenecks and scalability issues. Hence there was another one I wanted to highlight:Scalability...
View ArticleUsing the new spatial functions in MySQL 5.6 for geo-enabled applications
Geo-enabled (or location enabled) applications are very common nowadays and many of them use MySQL. The common tasks for such applications are:Find all points of interests (i.e. coffee shops) around...
View ArticleDesigning one to many relations – MongoDB vs MySQL
We already discussed one to one relations in MongoDB, and the main conclusion was that you should design your collections according to the most frequent access pattern. With one to many relations, this...
View ArticleHow to recover an orphaned .ibd file with MySQL 5.6
A few years ago Yves Trudeau and Aleksandr Kuzminsky wrote posts about different ways for recovering orphaned .ibd files:Connecting orphaned .ibd filesA recovery trivia or how to recover from a lost...
View ArticleIncremental backups with log archiving for XtraDB
Percona Server 5.6.11-60.3 has introduced a new feature called Log Archiving for XtraDB. This feature makes copies of the old log files before they are overwritten, thus saving all the redo log for a...
View ArticlePercona XtraBackup 2.1.6 is now available
Percona is glad to announce the release of Percona XtraBackup 2.1.6 on November 25th, 2013. Downloads are available from our download site here and Percona Software Repositories.This release is the...
View ArticleUseful MySQL 5.6 features you get for free in PXC 5.6
I get a lot of questions about Percona XtraDB Cluster 5.6 (PXC 5.6), specifically about whether such and such MySQL 5.6 Community Edition feature is in PXC 5.6. The short answer is: yes, all features...
View ArticleRenaming database schema in MySQL
One of the routine tasks for a DBA is renaming database schemas, and as such MySQL added a command to carry out that purpose called “RENAME DATABASE <database_name>”. However this command just...
View ArticleHow to recover table structure from .frm files with MySQL Utilities
Table structures are stored in .frm files and in the InnoDB Data Dictionary. Sometimes, usually in data recovery issues, we need to recover those structures to be able to find the lost data or just to...
View ArticleInnoDB file formats: Here is one pitfall to avoid
UPDATED: explaining the role of innodb_strict_mode and correcting introduction of innodb_file_formatCompressed tables is an example of an InnoDB feature that became available with the Barracuda file...
View ArticleBeware of MySQL 5.6 server UUID when cloning slaves
The other day I was working on an issue where one of the slaves was showing unexpected lag. Interestingly with only the IO thread running the slave was doing significantly more IO as compared to the...
View ArticleMySQL server memory usage troubleshooting tips
There are many blog posts already written on topics related to “MySQL server memory usage,” but nevertheless there are some who still get confused when troubleshooting issues associated with memory...
View Article10 MySQL settings to tune after installation
When we are hired for a MySQL performance audit, we are expected to review the MySQL configuration and to suggest improvements. Many people are surprised because in most cases, we only suggest to...
View ArticleFollowup questions to ‘What’s new in Percona XtraDB Cluster 5.6′ webinar
Thanks to all who attended my webinar yesterday. The slides and recording are available on the webinar’s page. I was a bit overwhelmed with the amount of questions that came in and I’ll try to answer...
View ArticleGenerating test data for MySQL tables
One of the common tasks requested by our support customers is to optimize slow queries. We normally ask for the table structure(s), the problematic query and sample data to be able to reproduce the...
View Article8 common (but deadly) MySQL operations mistakes and how to avoid them
January 22 I gave a presentation on “How to Avoid Common (but Deadly) MySQL Operations Mistakes” for Percona MySQL Webinars. If you missed it, you can still register to view the recording and my...
View Article