MySQL Shell is a command-line shell for MySQL Server that has the
capability for
interactive and batch code execution. It also
offers a wealth of APIs that make it easier and more efficient to
work with and manage MySQL servers. In 8.0.13, we made an effort
to make those APIs easily accessible straight from the command
line.…
The latest release of the MySQL Shell 8.0.13 (GA) introduced some interesting improvements and features, for more information see the full changelog here: https://dev.mysql.com/doc/relnotes/mysql-shell/8.0/en/mysql-shell-news-8-0-13.html. One of those features was the introduction of a convenient and easy way to import JSON documents to a MySQL Server database.…
The MySQL Development team is proud to announce a new version of the MySQL Shell which in addition to the usual bug fixes and enhancements to the existing components, offers new features we expect are quite useful in your day to day work.…
A month ago, I wrote a blog on how you can configure the MySQL Shell prompt to suit your
needs. One thing I did not go into details with are the
prompt templates prompt_256pl.json
and
prompt_256pl+aw.json
. Common for both of these
templates is that they require custom fonts to work.
In the two file names, pl stands for the PowerLine fonts and aw for the Awesome font. These fonts add symbols that are useful to create rich prompts, not only for MySQL Shell, but also for Bash, zsh, vim, etc. The symbols include an angle separator, a lock (that in MySQL Shell is used to symbolize an TLS/SSL connection), and so on.
…
[Read more]In April, I already posted an article on how to upgrade safely your MySQL InnoDB Cluster, let’s review this procedure now that MySQL 8.0.12 is out.
To upgrade all the members of a MySQL InnoDB Cluster (Group), you need to keep in mind the following points:
- upgrade all the nodes one by one
- always end by the Primary Master in case of Single Primary Mode
- after upgrading the binaries don’t forget to start MySQL
without starting Group Replication
(
group_replication_start_on_boot=0
) - to run
mysql_upgrade
Let’s see this in action on the video below:
As you could see, this is quick and easy.
…
[Read more]It can be hard to recall all the details of how a program and API work. The usual way to handle that is to look at the manual or a book. Another – and in my opinion – nice way is to have built-in help, so you can find the information without changing between the program and browser. This blog discuss how to obtain help when you use MySQL Shell.
MySQL Shell is a client that allows you to execute queries and manage MySQL through SQL commands and JavaScript and Python code. It is a second generation command-line client with additional WebOps support. If you have not installed MySQL Shell yet, then you can download it from MySQL’s community downloads, Patches & Updates in …
[Read more]We received feedback about how a member should act when leaving the group. And the majority of users wanted that when a node drops out of the group, it should kill all connections and shutdown. I totally agree with that behavior and it’s now the default in MySQL 8.0.12.
This new feature is explained in WL#11568.
Before this change, the server goes into super read only mode when dropping out of the group and allows users connected to this server or new connections (if you don’t use the router) to read old data.
Let’s check this out in the following video:
So now in MySQL 8.0.12, there is a mnew option called …
[Read more]
MySQL Shell is a great tool for working with MySQL. One of the
features that make it stand out compared to the traditional
mysql
command-line client is the support for
JavaScript and Python in addition to SQL statements. This allows
you to write code you otherwise would have had to write outside
the client. I showed a simple example of this in my post about
the instant ALTER TABLE
feature in
MySQL 8.0.12 where a Python loop was used to populate a table
with 1 million rows This blog will look further into the use of
Python and more specifically external modules.
…
[Read more]This year again, the MySQL Team is eager to participate in the Oracle Open World conference. This is a great opportunity for our engineers and the entire MySQL Team to highlight what we’ve done, and also what we are working on. Another reason to be excited this year is our new participation to Code One, the Oracle developer focused conference. Oracle Code One will include a full track dedicated to MySQL.
This is very good news for everybody attending, from DBAs to developers, as we will offer even more great content ! This year, in both events, we will highlight how NoSQL+SQL=MySQL.
Our MySQL Engineers will deliver fantastic sessions about …
[Read more]
A good news for all PHP CMS users like Drupal and Joomla!, PHP 7.2.8 (available on Remi’s repo for those using rpms) supports the
new MySQL 8.0 default authentication plugin
‘caching_sha2_password
‘ !
So, I’ve installed PHP 7.2.8:
And I’ve my user (here joomla) uses the …
[Read more]