[Mediawiki-l] Admin username wrong?

Filip Maljkovic dungodung at gmail.com
Fri Jun 29 22:58:41 UTC 2007


Matt Gallisdorfer wrote:
> I recently finished my mediawiki install and found the admin username I
> created is invalid?  Is there another way to change the admin username or
> make a different username an admin?
How do you mean invalid? Do you know the username or not?

Anyhow, I suppose you can always resort to mysql query. Namely, and I'm 
assuming you indeed have mysql access, create an account that you want 
to become an admin. Then do the following query:
INSERT INTO user_groups (ug_user, ug_group) VALUES (<the_user_id>, "sysop");
where <the_user_id> is the ID which you can obtain from preferences. 
It's symmetrical for making someone a "bureaucrat" (a user that can 
change user rights for other users).

HTH,
Filip





More information about the MediaWiki-l mailing list