Codership is pleased to announce a new Generally Available (GA) release of the multi-master Galera Cluster for MySQL 5.7, consisting of MySQL-wsrep 5.7.43 (release notes, download) and MySQL-wsrep 8.0.34 (release notes, download), with Galera replication library 4.16 (release notes, download) implementing wsrep API version …
[Read more]I know, we just released version 8.1, so isn't it a bit early to think about version 10 now? But 5.7 has almost reached its end of life, and MySQL engineers are already working on 8.2 and 8.3. With this speed, we can expect to get to version 10 within a few years. Let's have a look at what we've done in MySQL Server to prepare for this, and what you can and should do to future proof your applications.
We are excited to introduce MySQL HeatWave auditing. It provides a robust and powerful auditing mechanism that meets the most demanding data governance, compliance, and security requirements for: MySQL HeatWave Audit leverages the robust technology found in MySQL Enterprise Audit. It enables Database Administrators to define filters that specify which events and activities are collected. These database events provide details […]
MySQL HeatWave audit provides a robust and powerful auditing mechanism that meets the most demanding data governance, compliance, and security requirements.
This blog post will cover the basic setup of the InnoDB ClusterSet environment, which provides disaster tolerance for InnoDB Cluster deployments by associating a primary InnoDB Cluster with one or more replicas in alternate locations/different data centers. InnoDB ClusterSet automatically manages replication from the primary cluster to the replica clusters via a specific ClusterSet Async replication channel. If the primary cluster becomes inaccessible due to a loss of network connectivity or a data center issue, you can make a replica cluster active in its place.
Now, let’s see in detail how exactly we can configure the topology.
We have used the sandbox environment available via MySQLShell utility for this setup.
Environment
Cluster1:
127.0.0.1:3308
127.0.0.1:3309
127.0.0.1:3310
Cluster2:
127.0.0.1:3311
127.0.0.1:3312
127.0.0.1:3313
Router: …[Read more]
SQL is derided by many and for good reason. It’s key to scalability yet terribly difficult to write good code.
You can write tighter queries in MySQL easily by following 3 simple tricks –
SUBQUERIES, UNION, and PAGING.
In this article, we will explain all these patterns to write MySQL codes more efficiently.
3 Best and Simple Ways for Tighter MySQL Code
Here are a few quick tips to write tighter queries in MySQL:
1. Get Rid of Those Subqueries!
Subqueries are a standard part of SQL, unfortunately, MySQL doesn’t handle them very well. Luckily there’s a sweet rewrite that can put you in the fast lane. Here’s how to speed up a MySQL subquery by rewriting as a join.
Note that another compelling reason to upgrade to MySQL 5.6 is that this tweak has been rolled into the …
[Read more]MySQL replication technology is powerful and flexible. But it doesn’t do everything perfectly all the time. You may experience trouble with the slaves falling behind the master or want to scale horizontally by building new slaves automatically. Or you might need to build a slave without blocking the master database.
All of these goals can be achieved using some powerful tools. Here’s a quick guide to those tools and how to use them.
5 Ways To Fortify MySQL Replication
Here are all the best 5 ways to fortify MySQL replications:
- Build New Replicas Without Downtime
Something we’re sure you need to do quite often is to build new slaves. You can snapshot from another slave by bringing the slave down, copying its datadir to an alternate machine, updating the server_id and then starting up. However sometimes you have no slave, or your current slaves are serving data.
In those cases, …
[Read more]MySQL databases are great workhorses of the internet. They back tons of modern websites, from blogs and checkout carts to huge sites like Facebook. But these technologies don’t run themselves.
When you’re faced with a system that is slowing down, you’ll need the right tools to diagnose and troubleshoot the problem. MySQL has a huge community following and that means scores of great tools for your toolbox.
In this article, we have mentioned 7 ways that will troubleshoot MySQL effectively and efficiently. Let’s explore them below.
7 Ways to Troubleshoot MySQL
Here are 7 ways to troubleshoot MySQL:
1. Use Innotop
Innotop is a great tool for MySQL which despite the name monitors MySQL generally as well as InnoDB usage. It’s fairly easy to install, just download the perl script. Be sure to include a [client] section to your local users .my.cnf file …
[Read more]So, you’ve been tasked with managing the MySQL databases in your environment, but you’re not sure where to start.
Here’s the quick & dirty guide. Oh yeah, and for those who love our stuff, take a look to your right.
See that subscribe button? Grab our newsletter!
Steps to MySQL Management
Here are the steps that are required for MySQL management as a DBA:
1. Installation
The “yum” tool is your friend. If you’re using Debian, you’ll use apt-get but it’s very similar. You can do a “yum list” to see what packages are available. We prefer to use the Percona distribution of MySQL.
It’s fully compatible with stock MySQL distribution, but usually a bit ahead in terms of tweaks and fixes. Also, if you’re not sure, go with MySQL 5.5 for new installations. …
[Read more]There are a lot of considerations for deploying MySQL in the Cloud. Some concepts and details won’t be obvious to DBAs used to deploying on traditional servers.
For this, we have provided eight best practices in this guide that will certainly set you off on the right foot. Let’s explore them below.
This article is part of a multi-part series Intro to EC2 Cloud Deployments.
8 Practices You Should Follow While Deploying MySQL on Amazon
Here are eight best practices that you must follow while deploying MySQL on Amazon:
1. Replication
Master-Slave replication is easy to setup and provides a hot online copy of your data. One or more slaves can also be used for scaling your database tier horizontally.
Master-Master active/passive replication can also be used to bring …
[Read more]