Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8983237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:47:30+00:00 2026-06-15T20:47:30+00:00

I am working on WordPress and I completed my project locally. I then moved

  • 0

I am working on WordPress and I completed my project locally. I then moved it to my live server and did not change anything, I just made changes in the config file (database name, username and password).

Now my site is working fine on the front-end but I can’t get access to the admin panel as every time it gives me the error message:

You do not have sufficient permissions to access this page.

Google searches indicate that most of the errors occurred due to a change in the prefix but in my case its the same as on local. Also, the permissions of my directories are 755 and that of files is 644 but still am facing the same issue.

How might I go about fixing this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:47:31+00:00Added an answer on June 15, 2026 at 8:47 pm

    Have you changed the prefix of your database tables? I’m 90% sure, that this is your problem.

    The thing is that WordPress uses the $table_prefix variable for forming the option and usermeta keys names, where it’s storing the roles and capabilities information. So once you change the prefix, but don’t update your db, you get this error. Here’s how to fix it – execute this SQL command through phpMyAdmin, or a different interface for interacting with your DB(you can do it with PHP as well):

    UPDATE `{%TABLE_PREFIX%}usermeta` SET `meta_key` = replace(`meta_key`, '{%OLD_TABLE_PREFIX%}', '{%NEW_TABLE_PREFIX%}') WHERE option_name like '{%OLD_TABLE_PREFIX%}%';
    UPDATE `{%TABLE_PREFIX%}options` SET `option_name` = replace(`option_name`, '{%OLD_TABLE_PREFIX%}', '{%NEW_TABLE_PREFIX%}') WHERE option_name like '{%OLD_TABLE_PREFIX%}%';
    

    Where:

    • {%TABLE_PREFIX%} is your current $table_prefix(as set in wp-config.php)
    • {%OLD_TABLE_PREFIX%} is your previous $table_prefix
    • {%NEW_TABLE_PREFIX%} is your new(current) $table_prefix – it will most-likely be the same as your {%TABLE_PREFIX%}.

    So if your old $table_prefix was wp_test_ and your new one is wp_, you would do this query:

    UPDATE `wp_usermeta` SET `meta_key` = replace(`meta_key`, 'wp_test_', 'wp_') WHERE option_name like 'wp_test_%';
    UPDATE `wp_options` SET `option_name` = replace(`option_name`, 'wp_test_', 'wp_') WHERE option_name like 'wp_test_%';
    

    EDIT: As @Francisco Corrales noted, if you are having troubles accessing an admin page that you created(if you don’t write PHP, this is not your case), you can check out this link: WordPress Error while developing a plugin -"You do not have sufficient permissions to access this page."


    EDIT 2: Thanks to @Kasper Souren for suggesting that you might want to add a WHERE clause to the options UPDATE query. If you don’t do this, you might accidentally update some other option inadvertently. I have added the WHERE clause to all sample queries. If you are sure you don’t need it, then feel free to remove it at your own risk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

having just completed first wordpress theme uploaded and working fine in FF, testing has
I'm working on wordpress. Can anybody help me how can I change admin panel
I was just working on a Wordpress site and after updating a plug-in (which
I'm working with wordpress locally and for some reason when I call getimagesize() from
I just started working on wordpress after some time, When some client gave me
So I'm working with WordPress and just spend an hour tracking down an issue
I am working with wordpress and I have to display a menu based on
I'm working with wordpress.com along with the custom design upgrade to be able to
I am working on wordpress and I have to add a metabox in case
I'm working on a Wordpress plugin. I need to pass plugin directories (that can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.