You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you copy a database on MariaDB, and check the "Adjust privileges" checkbox, you get the error " column count doesn't match value count" on the mysql.db insert in adjustPrivilegesCopyDb().
To Reproduce
Go to Operations and select Copy database when using MariaDB.
Expected behavior
No error messages, and privileges copied.
Server configuration
Operating system: Fedora 30
Web server: Apache 2.4.30
Database version: MariaDB 10.3.12
PHP version: 7.3.5
phpMyAdmin version: 4.9.0.1
Client configuration
Browser: Chromium
Operating system: Fedora 30
Additional context
The reason for this error is that adjustPrivilegesCopyDb() has the column count hardcoded, and it fails because in MariaDB, the mysql.db table has 23 columns, not 22.
Describe the bug
When you copy a database on MariaDB, and check the "Adjust privileges" checkbox, you get the error " column count doesn't match value count" on the mysql.db insert in adjustPrivilegesCopyDb().
To Reproduce
Go to Operations and select Copy database when using MariaDB.
Expected behavior
No error messages, and privileges copied.
Server configuration
Client configuration
Additional context
The reason for this error is that adjustPrivilegesCopyDb() has the column count hardcoded, and it fails because in MariaDB, the mysql.db table has 23 columns, not 22.
It can be address by changing the code to
I have not checked the code for other privilege tables, as I don't use those.
The text was updated successfully, but these errors were encountered: