CALL (239) 961-8285
ENDURTECH
  • Web Services
    • Web Design
      • Design and Development
      • Web Consulting and Tutoring
      • Hosting and Maintenance
      • Project Portfolio
    • Media
      • Photo and Audio, Video Editing
      • Social Media Management
      • All Web Related Services
    • Marketing
      • Digital Marketing and Branding
      • Search Engine Optimization
    • Client Portal
      • Remote Web Support
      • Web Services Payment
      • Scheduled Payments
  • Tech Support
    • Services
      • Computer Support and Repair
      • Data Backup and Recovery
      • Computer Security, Virus Removal
      • Computer Networking Support
      • Computer Consulting & Tutoring
      • All Technology Related Services
    • Blockchain
      • Blockchain Technology
      • Cryptocurrency Articles
    • Client Portal
      • Remote PC Support
      • Remote Monitoring & Management
      • Tech Services Payment
  • Articles
  • About
  • Talk to Me
  • Menu Menu

Can’t Access the Dashboard After Changing WordPress Database Prefix

MySQL, Web Hosting, Web Security, Web Site Support, WordPress

It is a frequently suggested WordPress security tip to update your default WordPress database table prefixes. However, upon doing so you now appear to have lost access to your WordPress Dashboard backend.

Attempts to login to your WordPress website Dashboard backend simply results in a redirect to your homepage with a very limited WordPress Admin bar. Furthermore, any attempts to directly access your Dashboard backend via the “wp-admin” url presents you with the following error message:

Sorry, you are not allowed to access this page.

The issue is that your WordPress website database has the previous database table prefix stored within one or more of its table records. You will have to manually update these in order to restore your Dashboard admin access. Not a big deal, using your favorite database tool (we recommend phpMyAdmin) we will show you how to quickly fix this in this article.

 

[su_note note_color=”#157BAE” text_color=”#ffffff” radius=”5″]Would you like prompt assistance? If you don’t have time or are not comfortable taking the risk of adding custom code to your website, let us get this done for you now![/su_note]

 

Resolving Admin Dashboard Access

If you haven’t already done so, be sure to have obtained a backup of your entire website and database. Or better yet, try this out on a staging server first. Don’t have a staging server? Let us set up a staging server for you.

  • We assume you’ve already implemented the new table prefix on your WordPress database.
  • If you haven’t already done so update the table prefix variable, “$table_prefix“, within your wp-config.php file to the new prefix.
  • Run a manual search and replace on your _options table for your old prefix (see below).
  • Run a manual search and replace on your _usermeta table for your old prefix (see below).

 

Modify the OPTIONS Table

Search your “X_options” table (where X is your new prefix) for any instances of the old table prefix. To save you time, here is an example of the SQL query:

SELECT * FROM ‘X_options’ WHERE ‘option_name’ LIKE ‘%wp_%’

The purpose of this is to find any options that began with the old and assumed “wp_” prefix and replace them with your new table prefix. If you are having issues accessing your WordPress website backend you would want to update the option_name field which contains wp_user_roles in particular.

 

Modify the USERMETA Table

Search your “X_usermeta” table (where X is your new prefix) for any instances of the old table prefix. To save you time, here is an example of the SQL query:

SELECT * FROM ‘X_usermeta’ WHERE ‘meta_key’ LIKE ‘%wp_%’

The purpose of this is to find any options that began with the old and assumed “wp_” prefix and replace them with your new table prefix.

 

Check for Website Access

That should do it! Your should now have access to your WordPress Admin Dashboard again. Be sure to double check that everything functions correctly. It is also suggested to login as any other registered member roles to check their functionality.

If everything works as it should, you’ve successfully updated your WordPress website’s default database prefix.

 

Conclusion

I welcome your thoughts, questions or suggestions on my article on gaining access to your WordPress website Admin Backend after table prefix update.

You may support my work by sending me a tip using your Brave browser or by sending me a one time donation using your credit card.

Let me know if you found any errors within my article or if I may further assist you by answering any additional questions you may have.

 

June 25, 2018
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on LinkedIn
  • Share on Reddit
  • Share by Mail
https://endurtech.com/wp-content/uploads/2018/04/wordpress-content-management-system.jpg 512 512 Manny https://endurtech.com/wp-content/uploads/2018/04/endurtech-logo.png Manny2018-06-25 07:35:422021-07-19 11:43:35Can’t Access the Dashboard After Changing WordPress Database Prefix
4 replies
  1. Ridge
    Ridge says:
    July 19, 2021 at 11:37 am

    I owe you a coffee!

    • Manny Rodrigues
      Manny Rodrigues says:
      July 19, 2021 at 11:39 am

      Happy to have helped Ridge! Thanks for letting me know the article helped you.

  2. Seanster
    Seanster says:
    April 15, 2025 at 9:32 am

    This is all extremely helpful thanks. I missed wp_user_roles and spun my wheels for a while until your page reminded me to go back and check it.

    • Manny
      Manny says:
      April 15, 2025 at 9:33 am

      You’re very welcome! I’m glad the page was able to help you out and get you back on track with wp_user_roles. It’s always satisfying to find that one key detail that makes everything click. If you have any other questions or need further assistance, feel free to ask! Keep up the great work.

Comments are closed.

Search Search

CONNECT WITH US

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

Want to say, "thanks"?
Leave me a review on Facebook and/or Google.

You can send me a tip using your Brave browser. Get Brave!

Only used to send you a receipt.
Include a Message
Popular
  • Windows Logo
    Second Monitor on Windows 10 Resets After SleepJuly 2, 2020 - 6:30 am
  • Windows Logo
    How to Disable the F1 Help Key in Windows 10April 15, 2021 - 2:40 pm
  • Cortana Logo
    How to Disable Microsoft’s CortanaApril 6, 2021 - 9:00 am
  • Firefox Logo
    How to Remove All Passwords from Lockwise in FirefoxMarch 26, 2020 - 11:00 am
Recent
  • How to block Facebook crawler
    List of Spider Crawlers to BlockOctober 13, 2026 - 8:50 am
  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar Err...July 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

STAY IN TOUCH

ENDURTECH Web Design Company Naples, Florida

Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Learn More & Connect

Search Search
ENDURTECH Logo
Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Latest Articles

  • How to block Facebook crawler
    List of Spider Crawlers to BlockOctober 13, 2026 - 8:50 am
  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar ErrorJuly 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

Recent Projects

  • Jewelry Website Gems of Note
    Gems of NoteNovember 15, 2019 - 10:16 pm
  • Gift Store Facebook Business Page Cover Video
    Gift Store Facebook Business Page Cover VideoApril 13, 2019 - 3:58 pm
  • Toledo Yoga BrandBot Footer Integration
    Toledo YogaApril 9, 2019 - 7:26 am
  • Lawyer Association Website with Member Portal
    National Employment Lawyers Association, Florida ChapterFebruary 26, 2019 - 8:00 am

Business Details

Mondays - Fridays
9:00 am - 5:00 pm
Eastern Standard Time
After hours by appointment

SUPPORT PHONE

(239) 961-8285

MAILING ADDRESS

59 Logan Ln.
Lynchburg, VA 24502

Copyright © 2026 ENDURTECH ® All Rights Reserved. Legal
Link to: Always Setup a Child Theme for your WordPress Website Link to: Always Setup a Child Theme for your WordPress Website Always Setup a Child Theme for your WordPress WebsiteWordPress Content Management System Icon Link to: Quick Fix for Unpatched WordPress File Delete Security Issue Link to: Quick Fix for Unpatched WordPress File Delete Security Issue WordPress Content Management System IconQuick Fix for Unpatched WordPress File Delete Security Issue
Scroll to top Scroll to top Scroll to top