Can't login after admin renaming
Hi, newbie mistake again
i renamed the "admin" user into something like "Gedeon T." and logged out.
I couldn't log back it.
I tried the trick from the FAQ:
INSERT INTO `users_users` SET `password`='MYNEWPASS', `hash`= md5('adminMYNEWPASS') WHERE `login`='admin';
But it didn't work and got this error message:
SQL query:
INSERT INTO `users_users`
SET `password` = 'MYNEWPASS',
`hash` = md5( 'adminMYNEWPASS' ) WHERE `login` = 'admin'
MySQL said: Documentation
- 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `login`='admin'' at line 1
I tried the trick with user "Gedeon T." and could login with it, but it didn't have admin privileges anymore!
For all pracical purpose, user "admin" doesn't exist anymore, but no user with admin privileges exists either: I can't admin my wiki.
Any ideas?