Posts by MySQL Planet
Author: MySQL Planet
Online DDL with Group Replication In Percona Server for MySQL 8.0.22 (and MySQL 8.0.23)

Feed: Planet MySQL; Author: Marco Tusa; While I was working on my grFailOver POC, I have also done some additional parallel testing. One of them was to see how online DDL is executed inside a Group Replication cluster. The online DDL feature provides support for instant and in-place table alterations and concurrent DML. Checking the Group Replication (GR) official documentation, I was trying to identify if any limitation exists, but the only thing I have found was this: “Concurrent DDL versus DML Operations. Concurrent data definition statements and data manipulation statements executing against the same object but on different servers ... Read More
How to Replicate Securely and in Real-Time From MySQL to Amazon Redshift

Feed: Planet MySQL; Author: Continuent; Currently ranked 33rd on DB-Engines’ popularity ranking of database management systems (with a downwards trend), Amazon Redshift does have benefits for real-time data analytics on high volumes of data. According to Amazon itself, Redshift is a data warehouse that makes it easy for users to gain new insights from all of their data. It enables users to query and combine exabytes of structured and semi-structured data across their data warehouse, operational database, and data lake using standard SQL. As you’ll be aware, data analytics is a must-have business requirement nowadays; and you’ll also know that ... Read More
Percona Distribution for MySQL: High Availability with Group Replication solution

Feed: Planet MySQL; Author: Marco Tusa; This blog provides high availability (HA) guidelines using group replication architecture and deployment recommendations in MySQL, based on our best practices.
Every architecture and deployment depends on the customer requirements and application demands for high availability and the estimated level of usage. For example, using high read or high write applications, or both, with a need for 99.999% availability.
Here, we give architecture and deployment recommendations along with a technical overview for a solution that provides a high level of high availability and assumes the usage of high read/write applications (20k or more queries ... Read More
What you can do with Auto-failover and Percona Server Distribution (8.0.x)

Feed: Planet MySQL; Author: Marco Tusa; Where x is >= 22 ;)
The Problem
There are few things your data does not like. One is water and another is fire. Well, guess what:
If you think that everything will be fine after all, take a look:
Given my ISP had part of its management infrastructure on OVH, they had been impacted by the incident.
As you can see from the highlight, the ticket number in three years changes very little (2k cases) and the date jumps from 2018 to 2021. On top of that, I have to mention ... Read More
Percona Distribution for MySQL: High Availability with Group Replication Solution

Feed: Planet MySQL; Author: Marco Tusa; This blog provides high availability (HA) guidelines using group replication architecture and deployment recommendations in MySQL, based on our best practices. Every architecture and deployment depends on the customer requirements and application demands for high availability and the estimated level of usage. For example, using high read or high write applications, or both, with a need for 99.999% availability. Here, we give architecture and deployment recommendations along with a technical overview for a solution that provides a high level of high availability and assumes the usage of high read/write applications (20k or more queries ... Read More
MySQL JOINs Tutorial with Examples

Feed: Planet MySQL; Author: Alena Subotina; The article presents a detailed tutorial on MySQL JOINs. In it, you will learn about different types of JOINS that are supported in MySQL, their syntax, and how to use them. Introduction to MySQL JOINsDifferent types of JOINs in MySQL1. MySQL INNER JOIN clause2. MySQL OUTER JOINs2.1 MySQL LEFT JOIN clause2.2 MySQL RIGHT JOIN clause3. MySQL CROSS JOIN clauseMySQL JOINs guidelinesConclusion Introduction to MySQL JOINs MySQL databases usually store large amounts of data. To analyze that data efficiently, analysts and DBAs have a constant need to extract records from two or more tables based ... Read More
Replay the Execution of MySQL With RR (Record and Replay)

Feed: Planet MySQL; Author: Marcelo Altmann; Chasing bugs can be a tedious task, and multi-threaded software doesn’t make it any easier. Threads will be scheduled at different times, instructions will not have deterministic results, and in order for one to reproduce a particular issue, it might require the exact same threads, doing the exact same work, at the exact same time. As you can imagine, this is not straightforward. Let’s say your database is crashing or even having a transient stall. By the time you get to it, the crash has happened and you are stuck restoring service quickly and ... Read More
MySQL Script Test
Feed: Planet MySQL; Author: Michael McLaughlin; There are many ways to test and edit files. A lot of developers only use their favorite Integrated Developer Environment (IDE) but I find testing script files within the scope of a pipelined set of scripts much faster. The ability to edit a script from within the MySQL Command-Line Interface (CLI) or MySQL Shell would be nice but unfortunately, doesn’t exist. Here’s my quick edit and test script technique from your present working directory: Assume you create a task.sql test file, like: SELECT user() AS "Current User"G You can edit with vi or emac ... Read More
mysqldump Best Practices: Part 2 – Migrations Guide

Feed: Planet MySQL; Author: ScaleGrid.io; In the second and final part of our mysqldump best practices we will talk about how to handle the migration and import for stored program objects and views from your MySQL database. To read more about the prerequisites for a successful dump and restore operation for large MySQL databases, check out the first part of this 2-part blog series. Importing your stored procedures, functions and triggers By default, mysqldump imports views and triggers. However it does not import procedures, functions and events. To import procedures and functions, the --routines option should be specified, and to ... Read More
How to Rename a MySQL Database?

Feed: Planet MySQL; Author: Alena Subotina; Eventually, it appears necessary to change the name of a database in MySQL. For that purpose, we used to apply a simple RENAME DATABASE command that existed in earlier versions of MySQL. However, it became no longer available in the newer versions as it posed risks. The reason was that the RENAME DATABASE query could result in the loss of essential database contents, which clearly was undesirable. Renaming Tables Method There is a way to perform this task quite easily. In fact, MySQL version 5.5 (and later) has InnoDB Storage Engine as the default ... Read More
Recent Comments