Bug #50983 Not flushed privileges
Submitted: 8 Feb 2010 9:53 Modified: 26 Mar 2010 11:02
Reporter: Alberto León Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Administration Severity:S2 (Serious)
Version:5.2 OS:Any (Vista, Ubuntu)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: flush, privileges

[8 Feb 2010 9:53] Alberto León
Description:
The checked privileges didn't flush. A connection for test an user created by admin - Workbench fail.

I test to assign privileges by console and all be ok.

How to repeat:
Add new user
[8 Feb 2010 11:17] Valeriy Kravchuk
Thank you for the problem report. Please, check with a newer version, 5.2.15, and inform about the results.
[8 Feb 2010 11:42] MySQL Verification Team
If you get the same behavior could you please describe step by step how you did?. Thanks in advance.
[10 Feb 2010 12:13] Alberto León
Yes, the bug is on 5.2.15b too.

Steps
1. Create new schema
2. Create new user and apply settings
3. Click on Schema Privileges
4. Select the new user
5. Add Entry
6. Selecte the new schema created
7. Click on "SELECT ALL"
8. Save changes
9. Go to Connections and add a new connection for this user
10. Test the connection (error throwed "acces denied to user 'nameUser'@'localhost')

HOW TO FIX
1. Go to console
2. GRANT ALL PRIVILEGIES .........
3. Go To Connections
4. Test it
5. And now you can do things
[10 Feb 2010 12:34] Susanne Ebrecht
During configuring connection did you use "localhost" or "127.0.0.1" as hostname?
[10 Feb 2010 12:37] Alberto León
I try both
[10 Feb 2010 12:41] Alberto León
I tried both..., sorry I did grammar mistake in previous message
[19 Feb 2010 11:51] Susanne Ebrecht
Verified as described by using Ubuntu.
[19 Feb 2010 17:44] Johannes Taxacher
looks like the problem lies within a not properly applied password for the user, rather than not properly flushed privileges. (at least thats what happened for me when trying to reproduce)
[19 Feb 2010 18:46] Alfredo Kojima
This has been fixed. The issue is actually that when an account is created, the password is not set.
If you re-set the password once the account is created, the problem doesnt appear.
[1 Mar 2010 22:13] Johannes Taxacher
Bug #51464 has been marked as duplicate of this one
[23 Mar 2010 10:45] Johannes Taxacher
this has been fixed in repository
[26 Mar 2010 11:02] Tony Bedford
An entry has been added to the 5.2.17 changelog:

In the Administrator section of MySQL Workbench, if a new user was created, the password was not correctly applied for the account, resulting in the new user being denied access when an attempt was made to connect to a server with that user account.