LIVE WEBINAR: Wednesday, November 27, 2019. 9AM PDT. Migrating to MySQL 8.0 from 5.6 or 5.7. Planning to upgrade to 8.0? Join us to learn the easy steps and best practices for a smooth upgrade. Register now!All opinions expressed in this blog are those of Dave Stokes who is actually amazed to find anyone else agreeing with him
Today, I will describe MySQL database connectivity with golang. MySQL is most popular open source relational database. I will let you know step by step how to golang connect with MySQL database. I assumed you have configured golang environment within your system, if not please configure golang environment into your system. The golang have MySQL […]
The post How to Connect Golang with MySQL appeared first on Phpflow.com.
In this blog post, we will see how to use perf (a.k.a.: perf_events) together with Flame Graphs. They are used to generate a graphical representation of what functions are being called within our software of choice. Percona Server for MySQL is used here, but it can be extended to any software you can take a resolved stack trace from.
Before moving forward, a word of caution. As with any profiling tool, DON’T run this in production systems unless you know what you are doing.
Installing Packages Needed
For simplicity, I’ll use commands for CentOS 7, but things should be the same for Debian-based distros (apt-get install linux-tools-$(uname -r) instead of the yum command is the only difference in the steps).
To install perf, simply issue:
SHELL> sudo yum install -y perf…[Read more]
By having appropriate indexes on your MySQL tables, you can greatly enhance the performance of SELECT queries. But, did you know that adding indexes to your tables in itself is an expensive operation, and may take a long time to complete depending on the size of your tables? During this time, you are also likely to experience a degraded performance of queries as your system resources are busy in index-creation work as well. In this blog post, we discuss an approach to optimize the MySQL index creation process in such a way that your regular workload is not impacted.
MySQL Rolling Index Creation
We call this approach a ‘Rolling Index Creation’ - if you have a MySQL master-slave replica set, you can create the index one node at a time in a rolling fashion. You should create the index only on the slave nodes so the master’s …
[Read more]
This blog was initially referring to the audit
plugin, but I renamed it as check plugin to be more
compatible with all the current and future methods included in
it.
As you may know, it’s now possible to create your own plugins for MySQL Shell. See the following posts:
- https://lefred.be/content/overview-on-mysql-shell-8-0-17-extensions-plugins-and-how-to-write-yours/
- https://lefred.be/content/mysql-router-8-0-17s-rest-api-mysql-shell-extensions/
- …
I often need to install a certain version of MySQL, MariaDB, or Percona Server for MySQL to run some experiments, whether to check for behavior differences or to provide tested instructions. In this blog series, I will look into how you can install MySQL, MariaDB, or Percona Server for MySQL with Docker. This post, part one, is focused on MySQL Server.
Docker is actually not my most preferred way as it does not match a typical production install, and if you look at service control behavior or file layout it is quite different. What is great about Docker though is that it allows installing the latest MySQL version – as well as any other version – very easily.
Docker also is easy to use when you need a simple, single instance. If you’re looking into some replication-related behaviors, …
[Read more]In a previous post, I explained how you can take advantage of Oracle’s “Always Free” Cloud instance to obtain a free Oracle Cloud compute instance (virtual machine) and install a copy of MySQL – without having to pay a setup fee and without incurring any monthly charges. And, you can have two free compute instances per account.
This free Cloud option from Oracle is great. I can think of a lot of ways to utilize a free Oracle Cloud compute instance – but the first one that came to …
[Read more]In the previous blog we showed you how to set up an environment in Amazon AWS EC2 that consists of a Percona Server 8.0 Replication Cluster (in Master - Slave topology). We deployed ProxySQL and we configured our application (Sysbench).
We also used ClusterControl to make the deployment easier, faster and more stable. This is the environment we ended up with...
This is how it looks in ClusterControl:
In this blog post we are going to review the requirements and show you how, in this setup, you can seamlessly perform master switches.
Seamless Master Switch with ProxySQL …
[Read more]In this post, we will explore one approach to MySQL high availability with ProxySQL, Consul and Orchestrator.
This is a follow up to my previous post about a similar architecture but using HAProxy instead. I’ve re-used some of the content from that post so that you don’t have to go read through that one, and have everything you need in here.
Let’s briefly go over each piece of the puzzle:
– ProxySQL is in charge of connecting the application to the appropriate backend (reader or writer).
It can be installed on each application server directly or we can have an intermediate connection layer with one or more ProxySQL servers. The former probably makes sense if you have a small number of application servers; as the number grows, the latter option becomes more attractive. Another scenario for the …
[Read more]
MySQL Cluster 8.0.18 RC2 was released a few weeks back packed
with a set of
new interesting things.
One major change we have done is to increase the number of data
nodes from 48 to
144. There is also ongoing work to fully support 3 and 4 replicas
in MySQL
Cluster 8.0. NDB has actually always been designed to handle up
to 4 replicas.
But the test focus have previously been completely focused on 2
replicas. Now we
expanded our test focus to also verify that 3 and 4 replicas work
well. This means
that with NDB 8.0 we will be able to confidently support 3 and 4
replicas.
This means that with NDB 8.0 it will be possible to have 48
node
groups with 3 replicas in each node group in one cluster.
The higher number of nodes in a cluster gives the possibility to
store even more
data in the cluster. So with 48 node groups it is possible to
store 48 TByte of
…