Skip to content

Instantly share code, notes, and snippets.

@scrobbleme
Created June 14, 2014 20:36
Show Gist options
  • Save scrobbleme/5c09558111b83524cfa6 to your computer and use it in GitHub Desktop.
Save scrobbleme/5c09558111b83524cfa6 to your computer and use it in GitHub Desktop.
Fix WordPress table prefix within the database
-- Source: http://wordpress.org/support/topic/changed-table-prefix-got-insufficient-permissions-error#post-713055
UPDATE new_usermeta
SET meta_key = REPLACE(meta_key,'old_','new_');
UPDATE new_options
SET option_name = REPLACE(option_name,'old_','new_');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment