New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQL error when modifying user privileges on MySQL 8.0.11+ #16166
Comments
|
Modifying Database-specific privileges does seem to work properly, however. |
|
@williamdes I think that PR is Windows specific. My server os is FreeBSD so I can test it but rim not sure it will fix the issue. |
|
I tried MySQL 8.0.2,3 without errors and MySQL 8.0.11 has the error. |
|
I'm running 8.0.20, so perhaps its > 8.0.11? |
|
Any > 8.0.11 seems to be affected The end of query is blocking the execution https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-11.html It looks like #14217 was not fixed or maybe it is another bug.. |
|
I tried phpMyAdmin 4.8,4.9,5.0,5.1 and all versions are affected. |
|
Perhaps it's an issue that is only prevalent on MySQL 8.0.11 and up, so it wouldn't have been caught until now? nevermind, I see that 8.0.11 was released in 2018. I guess I have a knack for finding broken things? |
Yes, I agree Anyway, my fix is quite ready and I will post in in ~30 minutes after writing some unit tests |
Yeah, I caught that after posting my reply. |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
Could you try the fix 5164bea ? |
|
Confirmed. This PR fixes the problem. I tested it on my 8.0.20 instance. |
|
Side note. This may be related, but it isn't clear. If I modify user privileges on a database level, select the databases, then check all and click go, it runs the query but unchecks "GRANT". It still seems to run the "GRANT ALL PRIVILEGES" query though. |
Indeed, if you think this is a bug you can open an issue. Thank you for testing my patch :) |

Describe the bug
This is similar to #14217. Modifying user permissions causes a SQL error
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect that the permissions get changed without error.
Screenshots
Server configuration
Client configuration
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: