Aegisify company logo

We're Here to Help

Resources & Help Center

Search our knowledge base, view documentation, or get support. Everything you need in one place.

Why must option and usermeta keys change when the database prefix changes?

Renaming tables is only half of a prefix change. WordPress also stores some keys that contain the prefix itself. If they are not updated, users lose their roles and administrators can be locked out of wp-admin.

The keys involved

  • In the options table: {prefix}user_roles, which defines every role and its capabilities. Some plugins also store prefix-named options.
  • In the usermeta table: {prefix}capabilities and {prefix}user_level for every user.

For example, changing from wp_ to wpsecure_ means wp_capabilities must become wpsecure_capabilities.

What Aegisify Shield does

When you apply a prefix change, the DB Prefix Manager:

  1. Renames the affected tables.
  2. Updates the prefix-bound option keys.
  3. Updates the prefix-bound usermeta keys.
  4. Updates wp-config.php automatically if it is writable, or shows the exact line to add manually.

The result screen reports tables renamed, options keys updated, usermeta keys updated, and the backup used.

Verify afterward

Run the read-only Verification Scan, which confirms required core tables exist under the new prefix, no critical tables remain on the old one, and no old prefix-bound option or usermeta keys remain.

Related: Preview and dry run, Database prefix manager.

2026-12-01T03:50:13+00:00December 13th, 2025||

Find this article interesting, please share.