Can't log in with MySQL username containing "á" #12232
Steps to reproduce
I should be logged in successfully
I am shown the error message
The text was updated successfully, but these errors were encountered:
This is caused by client charset being set to something else that utf-8. The problem is that there is no way in PHP to set charset before authenticating. So PHP is sending utf-8 encoded string, while MySQL parses it as iso-8859-1 (what is usually the default).
So I think the only way to allow authentication with non ascii usernames (or passwords) is to change server default charset to utf-8.
Thanks for figuring that out.
So this is really a MySQL configuration issue and there's nothing we can do about it. But I wonder why the command line client works, then.
I'm not even sure that this is worth adding a FAQ entry about at this point. What do you think?