Comments on: Migrating From MariaDB to Percona Server for MySQL 8: The Security Witchcraft https://www.percona.com/blog/migrating-from-mariadb-to-percona-server-for-mysql-8-security Mon, 05 Jun 2023 14:08:02 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Fernando Mattera https://www.percona.com/blog/migrating-from-mariadb-to-percona-server-for-mysql-8-security/#comment-10974085 Mon, 05 Jun 2023 14:08:02 +0000 https://www.percona.com/blog/?p=88252#comment-10974085 Hey Karl,

Thank you so much for reading and making this suggestion. I have a few things to say:

Not only do you need a server version equal to or higher than 10.3, but you also need at least the corresponding version of the MariaDB client tools, including mysqldump. Although my test was made using the latest version of MariaDB, my intention was to cover all possible versions such as 10.0 onwards. I didn’t write such clarification in order to avoid making this blog so long.Regardless you have version 10.3 or higher, the syntax of the CREATE USER differs and doesn’t work in MySQL/Percona Server. Below I show you an example

The dump on MariaDB

The CREATE USER attempt on MySQL/Percona Server

Also, you may ask, “Why are you talking about ROLES above all?” Again, ROLES were introduced in MariaDB 10.2, and the dump doesn’t look so good

Thanks for your suggestion, anyway. Best,

Fernando.

]]>
By: Karl Levik https://www.percona.com/blog/migrating-from-mariadb-to-percona-server-for-mysql-8-security/#comment-10974081 Thu, 01 Jun 2023 14:32:04 +0000 https://www.percona.com/blog/?p=88252#comment-10974081 Did you consider the special --system=users option to mariadb-dump?

From man mariadb-dump:

• users – the users, roles and their grants outputed as CREATE USER,
CREATE ROLE, GRANT, and SET DEFAULT ROLE (ALTER USER for MySQL-8.0+).

]]>