Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I revoke some database privileges from MediaWiki after installation?

I've just installed MediaWiki on a web server. Obviously it needs lots of privileges during installation to set up its database correctly. Now that it's installed can I safely revoke some privileges (e.g. create table, drop table?) Or might it need to create more tables later (when they are first needed?) If not then I would prefer to grant it as few privileges as possible.

like image 529
finnw Avatar asked Sep 19 '08 21:09

finnw


1 Answers

After the installation, MediaWiki doesn't need to create any more tables. I'd suggest giving the user insert, select, and lock permission.

grant select,lock tables,insert on media_wiki_db.* to 'wiki'@'localhost' identified by 'password';
like image 164
hoyhoy Avatar answered Sep 30 '22 02:09

hoyhoy