Bug #19652 | Wrong description on how to create new user accounts | ||
---|---|---|---|
Submitted: | 9 May 2006 20:55 | Modified: | 10 May 2006 13:32 |
Reporter: | Thomas Schweikle | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 3.x,4.x | OS: | Any (All) |
Assigned to: | CPU Architecture: | Any |
[9 May 2006 20:55]
Thomas Schweikle
[9 May 2006 22:17]
Hartmut Holzgraefe
The GRANT command works just fine, the fact that it returns "0 rows affected" does not indicate an error. CREATE TABLE for example also returns "0 rows affected". Creating a user using "INSERT INTO user ..." is not recommended anymore, use the GRANT command instead. The number of columns in the mysql.user table can change between major releases, so the error message you get is due to the fact that you picked an example for a different server version than the one you are using. Just try to log in as the user you created with grant to see that it *is* actually working.
[10 May 2006 13:32]
Thomas Schweikle
Yes it is now working, but I had to deactivate the anonymous user for localhost, by adding a username and password. After this change I could add new users.