Created
May 9, 2015 21:23
-
-
Save duogeekdev/c67ffb9789f24fb75d41 to your computer and use it in GitHub Desktop.
Replace wordpress table prefix in mysql
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
// Do this for all existing tables | |
RENAME table `wp_posts` TO `me_posts`; | |
// The the following | |
UPDATE `me_usermeta` SET `meta_key` = REPLACE( `meta_key`, 'wp_', 'me_' ); | |
UPDATE `me_options` SET `option_name` = 'me_user_roles' WHERE `option_name` = 'wp_user_roles'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment