Bug #10725 Attempting to create a user with the same name can lead to an access violation
Submitted: 19 May 2005 1:16 Modified: 28 May 2005 21:30
Reporter: Harrison Fisk Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Administrator Severity:S3 (Non-critical)
Version:1.0.20 OS:Windows (Windows XP)
Assigned to: Vladimir Kolesnikov CPU Architecture:Any

[19 May 2005 1:16] Harrison Fisk
Description:
If you attempt to create a user with the same name as one that exists, it will give you an access violation when you try to create a new user afterwords.  There are some other paths you can take to get an access violation as well if you have two of the same username in the user list.

How to repeat:
1.  Open MA and switch to the User Management tab.
2.  Right click on the user section and say to create a new user.
3.  Enter a username that already exists (doesn't seem to work with root sometimes, try a different user, in my case it was "wu").
4.  Click Apply Changes.   (gives you an error about saving changes)
5.  Click on another user, and click to save changes when it prompts you.
6.  Click back on the new user you just created.
7.  Click the "new user" button.
Access Violation ensues.

Suggested fix:
I would guess it is a problem with having either two users of the same name, or the fact that the user doesn't exist, but is still listed in the side box.  Either way it should work to not leave the user in there that can't be saved.
[19 May 2005 2:21] MySQL Verification Team
Thank you for the bug report.
[28 May 2005 21:30] Vladimir Kolesnikov
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html