To see what queries are sent to MySQL, it’s useful to enable query logging and piping the output to a file or even a table to inspect later. In this [...]
The post How to enable MySQL query logging appeared first on Geeky Hacker.
To see what queries are sent to MySQL, it’s useful to enable query logging and piping the output to a file or even a table to inspect later. In this [...]
The post How to enable MySQL query logging appeared first on Geeky Hacker.
One of the problems that comes with age is that there is so much 'baggage' filling valuable brain area that it sometimes requires a mental sweeping before trying to learn a new skill. I am still getting rid of FORTRAN and COBOL factoids but need to come up to speed on extending MySQL for some talks I am giving. So away with the PROCEDURE DIVISION stuff...
The MySQL Shell or Mysqlsh is very extensible and it is easy to create a plugin for some handy routines. Your routines can go in functions and there are examples below. The tricky part is that you have to tell Mysqlsh that you are creating an extension and then hook up your function(s) to that extension object. Finally that extension object has to be registered with the shell.
So below are two functions which query the MySQL World Database for the contents of the world.city and the world.country tables. The first thing for both of these …
[Read more]Percona Server for MySQL 8.0.23-14 was released last week and I wanted to take a minute to call out some of the interesting new features that we have introduced in this release. These are included in addition to the features and improvements in MySQL 8.0.23 that were introduced by the Oracle MySQL team (and to which Percona also contributed).
Hashicorp Vault Plugin Support for KV Secrets Engine – Version 2 (PS-5364)
As of Percona Server for MySQL 8.0.23-14, the Hashicorp Vault plugin can be configured to specifically use either V1 or V2 Secrets Engine API or it can be configured to probe and auto-detect the best version to use.
…
[Read more]In our last blog post about the Automatic Asynchronous Replication Connection Failover feature which was released in MySQL 8.0.22, we showed you its usage and benefits. We now present here additional changes we added in MySQL 8.0.23 to further enhance this feature by making the receiver aware of the source’s group membership changes.…
Tweet Share
This article provides a complete overview of how to create a new user account in MySQL and grant different types of privileges on a MySQL database. Learn the basics of user account management and find hints. Introduction First, let’s figure out why we need users and privileges. When you install MySQL Server on your system […]
The post How to Create a New User Account in MySQL and Grant Permissions on a Database appeared first on Devart Blog.
As introduced in a previous blog RonDB enables us to easily execute benchmarks on RonDB using the Sysbench benchmark.
In this blog I will present some results where the RonDB cluster had 2 data nodes, each using a r5.4xlarge VM in AWS that has 16 VCPUs and 128 GB memory. The Sysbench test uses SQL to access RonDB.
In this particular test case we wanted to test the Key-Lookup performance using SQL. Key-Lookup performance is essential in the RonDB use case as an online Feature Store in Hopsworks.
In this case we use the …
[Read more]
In the previous blog, we were able to setup a MySQL NDB Cluster
replication between one source and one replica cluster. In this
blog, we will discuss about replication between one source and
three replica clusters.
Note: With MySQL version (8.0.21), we have started
changing the term “master” to “source”, the term “slave” to
“replica”. So in this blog we will refer these terms ‘source’ and
‘replica’ wherever applicable.
The main advantage of this type of topology is good for giving
‘local’ reads in geographically distant areas as well as
increased redundancy in case of issues.
Let’s create four MySQL NDB Cluster with the following
environment, from which one will be termed as ‘source’ cluster
while the rest will be ‘replica’ clusters.
In this blog series, we will discuss various MySQL NDB Cluster
replication topologies possible with a demonstration. We will
start with a simple case i.e. one source (formerly called master)
and one replica (formerly called slave).
Note: With MySQL version (8.0.21), we have started changing the
term “master” to “source”, the term “slave” to “replica”. So in
this blog we will refer these terms ‘source’ and ‘replica’
wherever applicable.
Let’s create two MySQL NDB Cluster with the following
environment, from which one will be termed as ‘source’ cluster
while the other one will be ‘replica’ cluster. For now, let’s
stick to the identical environment from both the cluster. Later
in the following blog series, we will change the environments and
will run the replication.
The article provides a detailed overview of how to create a database in MySQL using different methods and tools (including the Command Line, Workbench, and dbForge Studio for MySQL). MySQL is a relational database management system based on SQL. It is developed, distributed, and supported by the Oracle Corporation. MySQL is free and open-source software […]
The post Creating a New Database in MySQL: Tutorial with Examples appeared first on Devart Blog.
This blog post is the third part of the series of blogs about indexes in MySQL. In the second part of the blog post series about MySQL indexes, we covered indexes and storage engines and touched upon some PRIMARY KEY considerations. The discussion included how to match a column prefix, some FULLTEXT index considerations, and how you should use B-Tree indexes with wildcards and how to use ClusterControl to monitor your queries' performance, subsequently, indexes.
In this blog post, we will go into some more details about indexes in MySQL: we will …
[Read more]