Question

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?

Was it helpful?

Solution

I grant:

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

Hope that helps anyone else that looks into this.

OTHER TIPS

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.

grant select, insert, delete, update, create, drop, alter on myblog

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top