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
{{ message }}
Repository navigation
phpMyAdmin unusable with user having WITH GRANT OPTION privileges and an existing Configuration Storage database #15123
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
This is interesting because the ability to see all databases comes from MySQL directly, even when testing from the command-line client I can see all databases. The documentation doesn't seem to cover this scenario, so it's not clear whether it's a bug or the intended behavior.
As for the rest, I'm having trouble reproducing. Have you configured the phpMyAdmin Configuration Storage database in config.inc.php along with a controluser? I have all of this configured. The export error and non-owned database error both seem to be related to the behavior of MySQL — currently, I believe phpMyAdmin tests if it sees the pmadb database (and probably the individual tables), but doesn't try to read or write data until it actually needs to. If MySQL would behave as one would expect, this wouldn't be a problem, but MySQL shows us the database and table but won't let us use it. That causes the error.
I'm guessing a bit, but think a good solution would be to test if we're a user account that has WITH GRANT OPTION but not global or database-specific select/insert/update privileges for the pmadb, and bypass the Configuration Storage in that case. We can also add a bit to the documentation about how this won't work.
The combination of no control user with an existing pmadb that the user has no privileges to use but can see causes errors in many ways. This is an interesting edge case.
changed the title [-]phpMyAdmin unusable[/-][+]phpMyAdmin unusable with user having WITH GRANT OPTION privileges and an existing Configuration Storage database[/+]on Mar 30, 2019
BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Activity
williamdes commentedon Mar 29, 2019
Loading forever when clicking an owned database

When clicking onto a non owned database

The db structure page if you press F5 after selecting a database

The export page

williamdes commentedon Mar 29, 2019
And so much more, unusable.
williamdes commentedon Mar 29, 2019
The storage analysis
As root there is no warning.
ibennetch commentedon Mar 30, 2019
This is interesting because the ability to see all databases comes from MySQL directly, even when testing from the command-line client I can see all databases. The documentation doesn't seem to cover this scenario, so it's not clear whether it's a bug or the intended behavior.
As for the rest, I'm having trouble reproducing. Have you configured the phpMyAdmin Configuration Storage database in config.inc.php along with a controluser? I have all of this configured. The export error and non-owned database error both seem to be related to the behavior of MySQL — currently, I believe phpMyAdmin tests if it sees the pmadb database (and probably the individual tables), but doesn't try to read or write data until it actually needs to. If MySQL would behave as one would expect, this wouldn't be a problem, but MySQL shows us the database and table but won't let us use it. That causes the error.
I'm guessing a bit, but think a good solution would be to test if we're a user account that has
WITH GRANT OPTIONbut not global or database-specific select/insert/update privileges for the pmadb, and bypass the Configuration Storage in that case. We can also add a bit to the documentation about how this won't work.The combination of no control user with an existing pmadb that the user has no privileges to use but can see causes errors in many ways. This is an interesting edge case.
[-]phpMyAdmin unusable[/-][+]phpMyAdmin unusable with user having WITH GRANT OPTION privileges and an existing Configuration Storage database[/+]williamdes commentedon Mar 30, 2019
I my config there is nothing more than simple multiple servers :)
Fix phpmyadmin#13912 and phpmyadmin#15123 - Tables of phpMyAdmin stor…
Fix phpmyadmin#13912 and phpmyadmin#15123 - Tables of phpMyAdmin stor…
Merge #15565 - Detect when phpMyAdmin storage tables are not accessible