I found the directions here. Which work for the most part, with some tweaks...
I started by restricting the wiki so that users had to be logged in to edit. That went fine.
Then I wanted to give myself sysop privileges. This was more complicated. The big issue is that when I installed mediawiki, I specified a prefix for my mediawiki tables:
$ grep wgDBprefix /etc/mediawiki/LocalSettings.phpSo I had to prefiex "mw_" to all the table names on the page. The specific steps were:
$wgDBprefix = "mw_";
- First, I had to figure out what version of mediawiki I was running. Fortunately there is a Special:Version page that tells you that.
- Now I need to figure out my uid for the 1.4 comments. the best way I found to do that was to log into the mysql database and then issued the following command. From the output I was able to figure out my uid was '2'.
mysql> SELECT user_id, user_name from mw_user;
- Now I could issue the command on the page:
mysql> UPDATE mw_user_rights SET ur_rights="bureaucrat,sysop" WHERE ur_user=2;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
2 comments:
I see now that I'm a sysop there is a page for making additional users into sysops. So an alternate to what I have above would probably to have logged into the wiki as the sysop user.
Looks like links on this entry have moved.
Post a Comment