Created
October 30, 2013 03:10
-
-
Save wpsmith/7226637 to your computer and use it in GitHub Desktop.
SQL: Replace User Meta Key
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
UPDATE wp_usermeta SET meta_key = REPLACE (meta_key, 'old_name', 'new_name'); | |
UPDATE myprefix_usermeta SET meta_key = REPLACE (meta_key, 'old_name', 'new_name'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For more information, see the tutorial here: http://wpsmith.net/2014/snippets/popular-wordpress-sql-user-administration-scripts/