Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What database privileges does a Wordpress Blog really need?

I am setting up a few Wordpress blog sites. I have created a user in mysql that wordpress will use to access its database. The docs say to give this user all privileges on the database.

Does it really need full privileges? I expect not, so does anyone know the min set of privileges that it really needs?

like image 547
Rik Heywood Avatar asked Sep 18 '08 11:09

Rik Heywood


2 Answers

I'm no Wordpress expert, but I would recommend it does actually have all privileges apart from GRANT. It will need to be able to create tables and insert/update etc. Several plugins use their own tables, which they create on the fly if they do not exist.

like image 190
Mark Embling Avatar answered Oct 12 '22 02:10

Mark Embling


I grant:

  • ALTER
  • CREATE
  • CREATE TEMPORARY TABLES
  • DELETE
  • DROP
  • INDEX
  • INSERT
  • LOCK TABLES
  • SELECT
  • UPDATE

Hope that helps anyone else that looks into this.

like image 42
Protonova Avatar answered Oct 12 '22 02:10

Protonova