Details
Description
Possibly related to the recent change in: MDEV-22313
The default role is set to 0 (which is incorrect).
# mysql mysql -se "show grants for 'user1'@'localhost';"
|
Grants for user1@localhost
|
GRANT USAGE ON *.* TO `user1`@`localhost` IDENTIFIED BY PASSWORD '*REDACTED'
|
SET DEFAULT ROLE 0 FOR 'user1'@'localhost'
|
This causes database users to have invalid grants.
Reading access rights for the cPanel user "user1" from live data:
|
MariaDB/MySQL ...Invalid grant string: SET DEFAULT ROLE 0 FOR 'user1'@'localhost'
|
This breaks the cPanel "Databases" interface. (Screenshot attached) This does not occur for all servers that update to these versions and the cause of some of them breaking has yet to be determined.
Downgrading solves the issue. Additionally, another workaround that we have used is to set the default role to NONE.
MariaDB [(none)]> SET DEFAULT ROLE none FOR 'user1'@'localhost';
|
Query OK, 0 rows affected (0.000 sec)
|
Attachments
Issue Links
- relates to
-
MDEV-24586 remove scripts/mysql_to_mariadb.sql
-
- Closed
-
I've resolved my doubts about keeping the columns in existence:
So sufficient as minimal fix is:
bb-10.2-danielblack-
MDEV-24122-m57-incorrect-user-table-alignmentIs limiting the cases where the mysql.user structure is tests to !bootstrap, !mysql_user_table_is_in_short_password_format sufficient to not be too much now?
https://github.com/MariaDB/server/commit/045a9d98b9520cede0e22d5b8615c411ed5aaa98#diff-df544694418bef1c4bc6cdc5211ca133e7ad4d31901f16d0fdee8df6e4debe89R2222