I want to import existing users with their passwords from an old WordPress site to a new one. The new WordPress installation has also existing users. Therefore I couldn't simply export/import the database tables from the old site.
Is there any other way to import the old users with passwords to the new site?
I want to import existing users with their passwords from an old WordPress site to a new one. The new WordPress installation has also existing users. Therefore I couldn't simply export/import the database tables from the old site.
Is there any other way to import the old users with passwords to the new site?
Changing the user ID
s could be problematic. Other tables reference those - including wp_usermeta
but if they are authors, customers, etc. then any tables that hold those items - like wp_posts
- reference the author by user ID
.
Changing the umeta_id
s should be safe, because that value isn't referenced elsewhere that I'm aware of. It wouldn't hurt to check your particular plugins and other tables to see if they are indeed referenced somewhere.
It would be safest to use a plugin to migrate the users. It does appear that you'll have to have your old users reset their passwords, but that's a smaller price to pay than getting customers, authors, etc. all confused.
A couple of possible options: Importing Users into new WordPress site and importing users where password is provided as md5 + much metadata.
You can do that with this simple WordPress user import export plugin, can migrate your password as well
umeta_id
is a random number. As long as you don't have duplicateumeta_id
s you can leave it alone. The other columns reference which user the meta belongs to, so it's completely arbitrary. – WebElaine Commented Sep 20, 2017 at 14:32