Created
May 15, 2019 10:57
-
-
Save anova/afd532d77ada19cf5cfa539c6fa583b8 to your computer and use it in GitHub Desktop.
Change db prefix wp-admin inaccessible.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- https://www.bishoy.me/changed-wp-table-prefix-now-cannot-access-wp-admin/ | |
-- http://www.neoegm.com/tech/wordpress/how-to-fix-the-you-do-not-have-sufficient-permissions-to-access-this-page-message-in-wordpress/ | |
UPDATE `new_prefix_wp_usermeta` SET `meta_key` = REPLACE(`meta_key`,'old_prefix_wp_','new_prefix_wp_'); | |
UPDATE `new_prefix_wp_options` SET `option_name` = REPLACE(`option_name`,'old_prefix_wp_','new_prefix_wp_'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment