Skip to content

Instantly share code, notes, and snippets.

@agrogeek
Created September 29, 2021 06:59
Show Gist options
  • Save agrogeek/54b5093e132fb15b31b580b8c3cfcab2 to your computer and use it in GitHub Desktop.
Save agrogeek/54b5093e132fb15b31b580b8c3cfcab2 to your computer and use it in GitHub Desktop.
WP: Sorry, you are not allowed to access this page - Tras export de database
UPDATE newprefix_usermeta SET meta_key = REPLACE(meta_key, 'oldprefix_', 'newprefix_') WHERE meta_key LIKE '%oldprefix_%';
UPDATE newprefix_options SET option_name = REPLACE(option_name, 'oldprefix_', 'newprefix_') WHERE option_name LIKE '%oldprefix_%';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment