MySQL 8.0.17 is officially released Yesterday. The most talked
feature is the clone plugin, which enables the automatic node
provisioning from an existing node (a Donor). This also closes
the gap between MySQL Group Replication and Galera Cluster on
usability.
Congrats to MySQL engineering team on the excellent work!
Specially expose the visibility of the operations:
mysql> SELECT STATE FROM
performance_schema.clone_status;
+-----------+
| STATE |
+-----------+
| Completed |
+-----------+
1 row in set (0.02 sec)
mysql> SELECT STAGE, STATE, END_TIME FROM
performance_schema.clone_progress;
+-----------+-------------+----------------------------+
| STAGE | STATE |
END_TIME …
We are happy to share with you that the mysqlbinlog tool has been enhanced. Starting on 8.0.17, the user can instruct the mysqlbinlog tool to negotiate, with the server that it connects to, whether to use protocol compression or not.
Since MySQL 5.6,…
Tweet Share
ERROR 1040…again
A pretty common topic in Support tickets is the rather infamous
error: ERROR 1040: Too many connections
. The issue
is pretty self-explanatory: your application/users are trying to
create more connections than the server allows, or in other
words, the current number of connections exceeds the value of the
max_connections
variable.
This situation on its own is already a problem for your end-users, but when on top of that you are not able to access the server to diagnose and correct the root cause, then you have a really big problem; most times you will need to terminate the instance and restart it to recover.
Root user can’t connect either! Why!?
In a properly set up environment, a user with SUPER
privilege will be able to access the instance and diagnose the
error 1040 problem that is causing connection starvation, as
explained in the manual:
…
[Read more]
I would like to point out some 'small' things you may not have
noticed in the MySQL 8.0.17 Release Notes. They are
small changes compared to things like MVIs, InnoDB cloning, and
the like but these are the types of changes that are subtle that
may catch you unaware.
1. Host names have grown from 60 to 255 characters. However
your SSL/TLS package may not be able to handle the longer
names.
2. If you are an old C/C++ programmer, 'C-style &&,
||, and ! operators that are synonyms for the
standard SQL AND, OR, and NOT operators, respectively, are
deprecated and support for them will be removed in a future MySQL
version'.
3. The ZERO fill attribute is being deprecated as is unsigned
FLOAT, DOUBLE, and DECIMAL. You can no longer AUTO_INCREMENT
FLOAT and …
Since MySQL 8.0.16, the Router as the possibility to launch an internal webserver (see Jan’s blog post).
Even if this webserver could serve static files, it was the first piece of a much more interesting solution that is now available since 8.0.17.
It’s possible now to query the MySQL Router via its REST API and get a lot of useful information.
Setup
Let’s first configure our MySQL Router to take advantages of this
new feature. In this example, I will add the following lines to
/etc/mysqlrouter/mysqlrouter.conf
that I created
using the --bootsrap
command line argument:
[http_server] port=8080 [rest_api] [rest_router] require_realm=somerealm [rest_routing] require_realm=somerealm …[Read more]
Starting at version MySQL5.6+ by default innodb_file_per_table is enabled and all data is stored in separate tablespaces.
It provides some advantages. I will highlight some of them:
- You can reclaim disk space when truncating or dropping a table stored in a file-per-table tablespace. Truncating or dropping tables stored in the shared system tablespace creates free space internally in the system tablespace data files (ibdata files) which can only be used for new InnoDB data.
- You can store specific tables on separate storage devices, for I/O optimization, space management, or backup purposes. …
As follow up to the previous blog announcement about the conferences and events MySQL Team is attending, we would like to inform you about where you can find us during August & September 2019. Please find the list below.
-
August 2019:
-
Mid-Atlantic Developer Conference, Baltimore, US, August 1-2, 2019
- MySQL Community team is a Bronze sponsor of this
Developer conference. Our MySQL Community Manager, David
Stokes will be giving 2 sessions as follows:
- "MySQL & GIS" scheduled for Aug 1 @11:30-12:30pm
- "MySQL without the SQL — Oh My!" Aug 2 …
- MySQL Community team is a Bronze sponsor of this
Developer conference. Our MySQL Community Manager, David
Stokes will be giving 2 sessions as follows:
-
Introduction In this article, we are going to see how we can sort an SQL query result set using an ORDER BY clause that takes a RANDOM function provided by a database-specific function. This is a very handy trick, especially when you want to shuffle a given result set. Note that sorting a large result set using a RANDOM function might turn out to be very slow, so make sure you do that on small result sets. If you have to shuffle a large result set and limit it afterward, then it’s... Read More
The post SQL ORDER BY RANDOM appeared first on Vlad Mihalcea.
The MySQL Shell 8.0.17 introduces a novel way of extending its base functionality through plugins, which are JavaScript or Python scripts that allow the user to:
- Register reports that can be used in monitoring tasks through the \show and \watch Shell Commands.
… Facebook Twitter LinkedIn
As announced in the previous blog post, MySQL InnoDB Cluster just got a very much requested feature which makes a complete, out-of-the-box, easy-to-use and versatile HA solution – Automatic Node Provisioning.
InnoDB cluster users can now rely on it for every single step of cluster deployment and management.…
Tweet Share