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?
On 6/29/07, Matt Gallisdorfer matgallis@gmail.com 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?
I would guess it's actually the password that you've got wrong (you can look at what the username is at Special:Listusers). You can change it: http://www.mediawiki.org/wiki/Manual:FAQ#How_do_I_reset_a_password.3F
If it actually is the username that you need to change, then you could do it manually in the database, or you could just use createAndPromote.php: http://www.mediawiki.org/wiki/Manual:FAQ#Initial_user_was_not_created_by_ins...
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
I got this error when running the query
*MySQL said: *[image: Documentation]http://dev.mysql.com/doc/mysql/en/Error-returns.html #1062 - Duplicate entry '0-sysop' for key 1
is this normal?
On 6/29/07, Filip Maljkovic dungodung@gmail.com wrote:
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
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org