(Rob Gravelle) Ever since Oracle became the owner of MySQL when it acquired Sun Microsystems in 2010, improvements to the software haven’t been as forthcoming as one might hope. In fact, some critics have gone so far as to contend that Oracle is willfully “trying to make it as difficult as possible
Tag: Open Source
PERFORMANCE_SCHEMA vs Slow Query Log
(Peter Zaitsev) A couple of weeks ago, shortly after Vadim wrote about Percona Cloud Tools and using Slow Query Log to capture the data, Mark Leith asked why don’t we just use Performance Schema instead? This is an interesting question and I think it deserves its own blog post to talk about.
Creating Users & Granting Permissions in MySQL
(Noel Herrick) One of the first tasks when setting up a new MySQL server is creating users and granting them permissions, or giving them the ability to do stuff in MySQL. By default, a single user, the root user, is created when you setup MySQL.
Overriding MySQL Current_timestamp Default on Update
(Ike Walker) The MySQL TIMESTAMP data type supports automatic initialization and updating to the current date and time. This can be a convenient way to track when rows are created and modified, but it’s easy to forget about them and have them update data when you don’t want that.
Designing Multi-Tenanted Databases – Anti-patterns
(Noel Herrick) In this post, I’m going to briefly cover the signs that you’re doing multi-tenancy wrong. Some of these practices are entrenched in software: there are gems in Ruby on Rails, for instance, use the first anti-pattern to achieve multi-tenancy.
The final piece of the puzzle
(Michael “Monty” Widenius) I just pushed the new CREATE OR REPLACE TABLE syntax into MariaDB 10.0, for the soon to be released 10.0.8-gamma (RC). (Before we had only CREATE OR REPLACE for views)
Generating test data for MySQL tables
(Jaime Sicam) 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 problem and resolve it by modifying the query, table structure, or global/session variab
Cleanup a MySQL Schema
(Michael McLaughlin) My students required way to remove all their tables, views, and constraints from a MySQL database (or the alias schema). Since they’re using referential or foreign key constraints, I also wrote one procedure to drop all foreign key constraints from a database.
Why delegating code to MySQL Stored Routines is poor engineering practice
(Shlomi Noach) I happen to use stored routines with MySQL. In fact, my open source project common_schema heavily utilizes them. DBA-wise, I think they provide with a lot of power (alas, the ANSI:SQL 2003 syntax feels more like COBOL than a sane programming language, which is why I use QueryScript in
Designing Multi-Tenanted Databases – Many-to-Many
(Noel Herrick) I want to give you tools that you can use for building databases that can handle complex relationships. In the previous article in this series, I looked at hierarchical data. The classic example of a hierarchy is an org chart. On most org charts I’ve seen, an employee has only one bos
