Your WordPress website keeps its posts, pages, settings, users and orders in a database. Open your website, then WordPress, then Tools, to work with it directly.
These tools are on our own hosting. A website on a partner platform shows a short note instead.
Run a database query
The Database query card runs one SQL statement against your website's database.
- SELECT, SHOW, DESCRIBE and EXPLAIN always run, read-only.
- INSERT, UPDATE, DELETE and REPLACE run only when you tick Allow changes. UPDATE and DELETE need a WHERE, so one statement cannot change every row.
- Press Preview change first. It runs the change, counts the rows it would affect and undoes it, so nothing is saved.
- When you press Run change, we ask you to confirm and tell you how many rows it will change. After a change, WordPress's cache is cleared too, so the website shows the new value straight away.
Every query is recorded in your activity log by its type, never by its text.
Change the database password
The Database password card changes the password WordPress uses to reach its database.
- Press Change database password and confirm.
- We set the new password, write it into
wp-config.php in the same step, and check it with a real sign-in.
- If anything fails, your website goes back to its current password and keeps working.
Your website cannot reach its database for about a second while the new password is set. Any other tool that signs in to this database with the old password stops working. The password is never shown.
Publish chosen tables from staging
When you publish a staging copy's database over your live website, you can tick only the tables to copy, for example wp_options. Every other live table stays as it is. Leave every box unticked to copy the whole database. See Testing changes on staging first for the full steps.
Repair and optimise
The Database maintenance add-on repairs and optimises your database tables for you every month. The Repair and optimise card links to it.