Many things in the MySQL 8.0 Series has evolved. I’ve discussed many of those things in prior blogs such as items like the MySQL-Router w/InnoDB Cluster, plus a Series on Enterprise Backup with InnoDB Cluster Backup & Restore Use Cases. But now its time to update everyone on the evolution of the Yum Repo packaging… Read More »
Many things in the MySQL 8.0 Series has evolved. I’ve discussed many of those things in prior blogs such as items like the MySQL-Router w/InnoDB Cluster, plus a Series on Enterprise Backup with InnoDB Cluster Backup & Restore Use Cases. But now its time to update everyone on the evolution of the Yum Repo packaging in MySQL 8.0.18!… Read More »
From my last blog , I have explained the details about the configuration of InnoDB Cluster ( Group Replication + MySQL shell ) . You can find the link below .
MySQL InnoDB Cluster Tutorial 1 ( Group Replication + MySQL Shell )
In this blog, I am going to explain How to integrate the MySQL router with the existing cluster setup .
As I explained in Tutorial 1 , I already have configured the cluster setup with MySQL shell and group replication,
MySQL 192.168.33.11:3306 ssl JS > cluster.getName();
first_InnoDB_cluster
MySQL 192.168.33.11:3306 ssl JS > \sql
Switching to SQL mode… Commands end with ;
MySQL 192.168.33.11:3306 ssl SQL > select channel_name,member_host,member_state,member_role,member_version from …
[Read more]
When you installed the Debezium MySQL connector, then it’ll start
read your historical data and push all of them into the Kafka
topics. This setting can we changed via
snapshot.mode
parameter in the connector. But if you
are going to start a new sync, then Debezium will load the
existing data its called Snapshot. Unfortunately, if you have a
busy transactional MySQL database, then it may lead to some
performance issues. And your DBA will never agree to read the
data from Master Node.[Disclaimer: I’m a DBA :) ]. So I was
thinking of figuring out to take the snapshot from the Read
Replica, once the snapshot is done, then start read the realtime
data from the Master. I found this useful information in a
StackOverflow answer.
If your binlog uses GTID, you should be able to make a CDC tool like Debezium read the snapshot from the replica, then when that’s done, switch to the master to read the binlog. But if you don’t use …
[Read more]try this
IDyes, you can add
MySQL InnoDB Cluster has introduced by the MySQL team for the High Availability ( HA ) purpose . It provides a complete high availability solution for MySQL.
Alright, I am planning to write the series of the blogs about the InnoDB Cluster configurations / Management with MySQL Shell / Monitoring etc …
In this blog I am going to show the InnoDB Cluster configuration with three nodes .
What is InnoDB Cluster ?
MySQL InnoDB Cluster is the Combination of,
- MySQL shell
- Group Replication ( GR )
- MySQL Router
Lab Environment :
I have prepared my lab with three servers,
- OS : Centos 7.7
- MySQL 8.0.18 ( latest version )
The server details are ,
- 192.168.91.11 ( hostname : sakthilabs11 )
- 192.168.91.12 ( hostname : sakthilabs12 ) …
This blog discusses a few concepts about Docker and how we can use it to run a MySQL async replication environment. Docker is a tool designed to make it easier for developers and sysadmins to create/develop, configure, and run applications with containers. The container allows us to package all parts of the application it needs, such as libraries, dependencies like code, configurations, and runtime engine. Docker runtime containers are platform-independent so the package created can be shipped one platform to another platform.
Dockerhub is the repository where you can find containerized docker images for applications like MySQL, Percona Server for MySQL, and MariaDB. Using the example below, I will show you how to set up a docker container from the …
[Read more]One of our support customers approached us with the following problem the other day:
mysql> CREATE TABLE child_table ( `id` int unsigned auto_increment, `column1` varchar(64) NOT NULL, parent_id int unsigned NOT NULL, PRIMARY KEY (`id`), CONSTRAINT FOREIGN KEY (parent_id) REFERENCES parent_table (id)); ERROR 1215 (HY000): Cannot add foreign key constraint
They could not create a table with an FK relation! So, of course, we asked to see the parent table definition, which was:
CREATE TABLE `parent_table` ( `id` int unsigned auto_increment, `column1` varchar(64) COLLATE utf8_bin NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB PARTITION BY HASH (id) PARTITIONS 4;
The parent table is partitioned! This immediately explained the problem; partitioned tables can not be part of an FK relationship, as described (in point 10) here – …
[Read more]MySQL query rewrite for ClickHouse using ProxySQL Introduction
ProxySQL in September 2017 announced support for ClickHouse as backend. ProxySQL is a popular open source, high performance and protocol-aware proxy server for MySQL and its forks. ClickHouse is an open source column-oriented database management system capable of real time generation of analytical data reports using SQL queries. To support ClickHouse as a backend, ProxySQL acts as a data bridge between MySQL protocol and ClickHouse protocol, allowing MySQL clients to execute queries in ClickHouse through it. ClickHouse’s SQL query syntax is different than MySQL’s syntax, and migrating application from MySQL to ClickHouse isn’t just a matter of changing connections endpoint but it also requires modifying some queries. This needs development time, but not always possible. One of ProxySQL most widely used feature is indeed the ability of …
[Read more]