The MySQL Server High Availability landscape provides with a slew
of tools to help you ensure that your databases keep humming.
Such tools are Galera Cluster, however, it is worth looking at
semi-synchronous replication with failover tools, and also the
usual leader-follower asynchronous replication. Today more
workloads are moving to the cloud, and what failover options do
you get with Amazon RDS for MySQL or even Aurora? What about the
newfangled group replication and InnoDB Cluster? And let us not
forget that Galera Cluster has spawned branches too!
Join Codership, the developers and experts of Galera
Cluster, as we discuss where Galera Cluster fits in and how
to get best out of it.
EMEA webinar 9th April 10-11 AM CEST (Central European
Time)
JOIN THE EMEA WEBINAR
USA webinar 9th April …
Do you want to run Galera Cluster in the cloud? Why not learn to setup a 3-node Galera Cluster using Amazon Web Services (AWS) Elastic Compute Cloud (EC2), and run it yourself (3-node because this is the minimum preferred size; you can have a 5, 7, or 9 node cluster too — not in the demo though!). In this webinar, we will cover the steps to do this, with a demonstration of how easy it is for you to do. We will also cover how you may want to load balance traffic to your Galera Cluster using a proxy like ProxySQL.
In addition, we will cover why you may want to run a 3-node (or more) Galera Cluster (multi-master synchronous clusters) instead of (or in addition to) using Amazon Relational Database Service (RDS) MySQL, which has the ability to have asynchronous replication (Read Replicas), and High Availability provided by DRBD (Multi-AZ). We will also cover where Galera Cluster differs from Amazon Aurora RDS for MySQL.
Join us and …
[Read more]This tutorial explains MySQL DATE_SUB function which subtracts a slice of time (in days/hours, e.g., 1 day or 10 days) from the given date. We’ll describe the complete date arithmetic of this method with the help of simple examples. 1. DATE_SUB() Syntax 2. DATE_SUB() with -ve Interval 3. DATE_SUB() for Invalid Date 4. DATE_SUB() for Auto Adjustment Let’s now go through each of the section one by one. MySQL DATE_SUB() Function As stated initially, DATE_SUB() is a built-in MySQL function which subtracts the specified no. of days from a given date. So, let’s now see the details and check out
The post MySQL DATE_SUB Function with Simple Examples appeared first on Learn Programming and Software Testing.
This tutorial explains MySQL FIND_IN_SET function which finds the position of a string within a sequence of strings separated by commas (i.e., comma-separated such as str1, str2, find_this_string,…) with examples. 1. FIND_IN_SET() Syntax 2. FIND_IN_SET Flow Diagram 3. FIND_IN_SET() Examples 4. FIND_IN_SET() Function Vs. IN operator Let’s now go through each of the section one by one. MySQL FIND_IN_SET() Function As stated initially, FIND_IN_SET() is a built-in MySQL function which returns the index of a string in a list of comma-delimited strings. So, let’s now see the details and check out how can we use it. Syntax Below is the
The post MySQL FIND_IN_SET Function with Simple Examples appeared first on Learn Programming and Software Testing.
This tutorial describes how to declare a variable (like user-defined, local, and system vars) in MySQL. We’ll tell you the complete syntax and provide simple examples for clarity. MySQL puts up the below three ways: 1. Declare a user-defined variable 2. Declare a local variable 3. Declare a system variable Let’s start with looking at all of them one by one. Declare Variable in MySQL There are primarily three types of variables in MySQL. And each has its specific way to provide a declaration. 1. Declare a User-defined Variable In MySQL, we can use the SET statement to declare a
The post How to Declare Variables in MySQL appeared first on Learn Programming and Software Testing.
The Question Recently, a customer asked us:
Where are the logs for a Tungsten Cluster and which are the proper log files to monitor if I do a master role switch to another node?
The Answer: Part I Both basic and advanced logs are available!
The basic logs are symbolic links into the log subdirectory for each layer of the cluster.
For example, this is the listing of the default log directory,
/opt/continuent/service_logs
:
connector-user.log -> /opt/continuent/tungsten/tungsten-connector/log/connector-user.log manager-user.log -> /opt/continuent/tungsten/tungsten-manager/log/manager-user.log mysqldump.log -> /opt/continuent/tungsten/tungsten-replicator/log/mysqldump.log replicator-user.log -> /opt/continuent/tungsten/tungsten-replicator/log/replicator-user.log xtrabackup.log -> /opt/continuent/tungsten/tungsten-replicator/log/xtrabackup.log
As you can see, each log file is a …
[Read more]When having only several databases to manage, regular backup operations can be done quite easily and seamlessly either with the help of a few simple scripts or by configuring an SQL Server agent that will perform the backup automatically. But sometimes the situation is more complicated. When, for instance, there are hundreds of databases, backing […]
In the first part of the series, we showed you how to deploy a MySQL Replication setup with ProxySQL with WHM and cPanel. In this part, we are going to show some post-deployment operations for maintenance, management, failover as well as advantages over the standalone setup.
MySQL User Management
With this integration enabled, MySQL user management will have to be done from WHM or cPanel. Otherwise, ProxySQL mysql_users table would not sync with what is configured for our replication master. Suppose we already created a user called severaln_user1 (the MySQL username is automatically prefixed by cPanel to comply to MySQL limitation), and we would like to assign to database severaln_db1 like below:
The above will result to the following mysql_users table output in ProxySQL:
If you would like to create …
[Read more]During this week you can find MySQL at following shows:
-
Oracle Global Partnership Summit, Munich, Germany, July 9-11, 2019
- Do not miss this event organized by Oracle University with Rich Mason, the Senior VP and General Manager for MySQL having a keynote & Carsten Thalheimer, the MySQL Master Principal Sales Consultant running the technical session.
- Registration here
-
MySQL User Group Munich - Meetup, Germany, July
11, 2019 @7:30pm
- Carsten Thalheimer, the MySQL Master Principal Sales Consultant is a speaking guest of this meetup. He will be …
As the administrator of a cluster, among other tasks, you should
be able to restore failed nodes and grow (or shrink) your cluster
by adding (or removing) new nodes.
In MySQL, as a backup tool (and if your amount of data is not too
big), you can use mysqldump a client utility that performs
logical backups.
The results are SQL statements that reproduce the original schema
objects and data.
For substantial amounts of data however, a physical backup
solution such as MySQL Enterprise Backup is faster, particularly
for the restore operation.
But this is the topic of my next blog post :)
The post MySQL InnoDB Cluster - Recovering and provisioning with mysqldump first appeared on dasini.net - Diary of a MySQL expert.