MySQL management, tutorials, scripts, coding, programming and tips for database administrators
Modern smartphones and other mobile devices have ushered in a new work paradigm where the office is where ever you are. The benefits of having 24/7 remote access to databases via mobile apps cannot be overstated. In today's article, we'll explore SQLPro for MySQL’s many features and get a feel for how it can help manage your publicly available and cloud databases from wherever you happen to be.
Although concerns about ownership and security persist, many companies have embraced cloud services and are reaping substantial financial rewards as a result. Rob Gravelle describes the different cloud database categories, and shows us how to configure an Amazon RDS MySQL database.
With so many causes and solutions of a database slowdown, you might expect to be spending the night at work, instead of in your warm bed. To avoid that cursed fate, read on to learn two ways to get at the root cause of slow MySQL performance using a couple of built-in MySQL features: The Slow Log and Performance Schema.
It pays to get a solid handle on how metadata is stored and retrieved in WordPress. In today’s article, we’ll learn how to fetch metadata from the wp_postmeta table using the versatile $wpdb object.
A key part of keeping your MySQL database running smoothly is the regular monitoring of performance metrics. There are literally hundreds of metrics that can be measured that can enable you to gain real-time insight into your database’s health and performance. Several MySQL monitoring tools have been developed to make performance monitoring easier. In today’s article, we’ll use Monyog to measure a few of the more important metrics.
Navicat Premium 12 is a robust solution that is geared towards DBAs who would benefit from being able to connect to multiple databases simultaneously as well as migrate data between them in a seamless and consistent way. Rob Gravelle reviews this product from the perspective of a MySQL developer who occasionally imports data from other database products.
Previous articles have described a way to overcome MySQL's import restrictions using the "proc-friendly" Load_File() and ExtractValue() functions. Now it’s time to take a step back and ask ourselves how to best load large amounts of external data into our MySQL database(s) as efficiently as possible.
Rolling your own search is especially advantageous for WordPress sites that include a lot of custom post types. Rob Gravelle shows you how to build a query that searches by post_title and taxonomy metadata.
Whether you’re fetching a single row or an entire result set, WordPress offers plenty of array types to work with. Read on to learn how to employ WordPress’ $wpdb’s get_row() and get_results() methods.
You can easily work with WordPress without ever seeing the database, but should your site grow to a certain level of complexity, you will almost certainly have to get in there. In fact, if you’re especially knowledgeable about MySQL and SQL, you can gain some noticeable performance benefits from crafting SQL statements yourself. To that end, today’s article will give a brief overview of the WordPress database schema and how to execute queries against it.
A cross tabulation query is used to display the result of an aggregation on two or more fields. The trick to this type of query is the transformation of rows of data to columns. Follow along with Rob Gravelle as he creates a crosstab query for the Sakila sample database that counts the number of movie rentals for each customer aggregated by month.
Rob Gravelle delves into the full syntax of the MySQL GROUP_CONCAT function and provides some guidance on how to use the GROUP_CONCAT function to chain together data from multiple columns in a way that’s both easy to read and parse with a script or application.