Exporting and importing users from wordpress to wordpress
Descriptions:
Tables:
wp_user and wp_usermeta (you need to change the wp_ if needed)
Export
from WP1 wp_user and wp_usermeta (separatly)
download the 2 sql files
Prepare sql files:
Upload:
- wp_users is the primary table, with a fixed list of columns.
- wp_usermeta is an additional table for storing arbitrary information (custom fields).
- The wp_users table already has a user_email column, so I don't know why the plugin uses wp_usermeta. I guess the best person to ask would be the plugin author himself.
Descriptions:
- WP1= my old site
- WP2= my new site
Tables:
wp_user and wp_usermeta (you need to change the wp_ if needed)
Export
from WP1 wp_user and wp_usermeta (separatly)
download the 2 sql files
Prepare sql files:
- In gedit do Ctrl+H (find and replace)
- replace database name
- replace tables changes (may be from wp_ to what_ever_your_string)
- save and keep
Upload:
- Go to your dtabase for WP2
- do a backup of the dB
- delete tables wp_user and wp_usermeta
- import new (fixed sql files) for wp_user and wp_usermeta
- test
- evaluate database
No comments:
Post a Comment