• Home
  • About
  • Services
    • Web Development
    • Digital Marketing And SEO
    • WordPress Security & Performance
  • Clients
  • Contact Us
  • Speak with us
  • Menu Menu

Restricting User Privileges on WordPress Databases

June 16, 2014/in WordPress/by Vinay Bansal

If you are running multiple WordPress setups on the same web server, it is wise to keep them in separate databases each managed by a different database user. It is recommended to accomplish this when setting up the initial Wordpress installation. This is a restraint strategy: if hackers successfully crack one WordPress installation, this makes it that much harder to alter your other setups.

If you are managing your MySQL database server yourself, ensure that you understand your MySQL configuration and that unneeded features (such as accepting remote TCP connections) are disabled.

For normal WordPress operations, such as posting blog posts, uploading media files, posting comments, creating new WordPress users and installing WordPress plugins, the MySQL database user only needs data read and data write privileges to the MySQL database; SELECT, INSERT, UPDATE and DELETE.

Therefore any other database structure and administration privileges, such as DROP, ALTER and GRANT can be revoked. By revoking such privileges you are also improving the containment policies.

Note: Some plugins, themes and major WordPress updates might require to make database structural changes, such as add new tables or change the schema. In such case, before installing the plugin or updating software, you will need to temporarily allow the database user the required privileges.

WARNING: Attempting updates without having these privileges can cause problems when database schema changes occur. Thus, it is NOT recommended to revoke these privileges. If you do feel the need to do this for security reasons, and then please make sure that you have a solid backup system of your database with regular backing up the database for easy restores. A failed database upgrade can usually be solved by restoring the database back to an old version, granting the proper permissions, and then letting WordPress try the database update again. Most WordPress upgrades do not change the schema, but some do.

[zoho_form]

Share this entry
  • Share on Facebook
  • Share on X
  • Share on X
  • Share on WhatsApp
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Vk
  • Share on Reddit
  • Share by Mail
https://www.dreamdax.com/wp-content/uploads/2014/06/Restricting-User.jpg 320 495 Vinay Bansal https://www.dreamdax.com/wp-content/uploads/2021/05/dreamdax-logo2021-1.svg Vinay Bansal2014-06-16 17:26:082023-04-27 09:24:10Restricting User Privileges on WordPress Databases

CATEGORIES

  • Industry News
  • IT Infrastructure
  • Open Source Framework
  • WordPress

Join these great brands today

We are proud to have earned the trust of so many clients over the past many years. A trust on a total commitment to quality solutions that deliver high-impact results. The fact is, we love to make our customers the HEROES.

 
PreviousNext

Newsletter

This field is for validation purposes and should be left unchanged.

IT solutions, leveraging industry leading technologies to drive real business results for clients.

Latest from our blog

  • WordPress 5.8 Launches Today With Powerful New CapabilitiesJuly 21, 2021 - 11:28 am
  • Security and Maintenance Release from WordPress as Version 5.1.1March 13, 2019 - 9:56 am
  • Display Widgets WordPress Plugin contains Malicious Code to Publish SpamSeptember 15, 2017 - 6:04 pm
  • Gutenberg and the buzzword around it…September 5, 2017 - 5:03 pm

Contact Us

Registered Address: 481, Sanskriti Apartments, Sector 19B, Dwarka, New Delhi – 110075, India

Operations: 4TH Floor, Plot #94, Sector-13, Dwarka, New Delhi -110078, India.

Call: +91 981-140-1177
Email: info@dreamdax.com

Schedule a call to speak with one of our representatives today!

Schedule a call

© Copyright 2026 | Privacy & Terms | Blog | Career | Discovery Forms

  • Facebook
  • Twitter
  • LinkedIn
  • Skype
Top 10 steps to Secure Your WordPress WebsiteStay secure with your WordPress Setup
Scroll to top