Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Can't log in with MySQL username containing "á" #12232
Steps to reproduce
I should be logged in successfully
I am shown the error message
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?