(Michael McLaughlin) I posted how to connect to an Oracle database from an XSLT library file back in August 2008. It’s an event driven XML approach that can support web page development. One of my students wanted to do the same thing against MySQL. He quickly saw that it was simply a matter of the s
Tag: Open Source
Load-balancing for MySQL Cluster
(Todd Farmer) Shortly after I wrote my last post regarding some advanced Connector/J load-balancing properties, Anirudh published a post describing configuration of RHEL LVS for load-balancing and failover of MySQL Cluster SQL nodes.
An Introduction to Multi-Master MySQL
(Sean Hull) Multi-master replication for MySQL is easy to setup, is similar to master-slave replication and provides a host of features and options not available with the regular master-slave setup. Add to that the MMM database management tool, and you have a flexible, highly available MySQL cluster
Using EXPLAIN EXTENDED / SHOW WARNINGS to Help Troubleshoot Inefficient Queries in MySQL
(Chris Calender) When examining the execution plan of troublesome queries in MySQL, most users are aware of using EXPLAIN. However, an often overlooked, yet very helpful extension of EXPLAIN, is EXPLAIN EXTENDED coupled with the SHOW WARNINGS command.
Implicit casting you don’t want to see around
(Shlomi Noach) In Beware of implicit casting, I have outlined the dangers of implicit casting. Here’s a few more real-world examples I have tackled:
Prepared statements – Are they useful or not?
(Anders Karlsson) MySQL has supported prepared statements since version 5.0, but the use of the non-prepared statement API is still much more popular. Here, I’ll explain what prepared statements are in short, and show some examples and why you would, and would not, use them.
mk-query-digest, query comments and the query cache
(Justin Swanhart) I very much like the fact that MySQL allows you to embed comments into SQL statements. These comments are extremely convenient, because they are written into MySQL log files as part of the query. This includes the general log, the binary log and the slow query log. Maatkit includes
Two Node Planned Manual Failover for the MySQL Database Administrator
(Chris Schneider) A database administrator needs to plan for both planned and unplanned failovers, based on business requirements and service level agreements with customers. This article runs through the very basic starting points of a MySQL failover strategy then walks through a two-node, planned,
How is join_buffer_size allocated?
(Baron Schwartz) When examining MySQL configuration, we quite often want to know how various buffer sizes are used. This matters because some buffers (sort_buffer_size for example) are allocated to their full size immediately as soon as they are needed, but others are effectively a “max size” and th
Detecting and removing unused indexes in MySQL
(Caspar Clemens Mierau) MySQL performance depends on a balanced usage of MySQL indexes. While it is easy to add an index and identify queries not using indexes via EXPLAIN during development or slow.log it is a lot harder to get rid of unused indexes. Finding and removing them might be crucial for y
