History of Migrating Users Between Bitweaver Sites
Version 1
Migrating Users Between Bitweaver Sites
One-time copy of users.
Watch out, work in progress, not functional yet, waiting for more info/help. If you have more info toward a solution, please mail me at sikko at gmx dot net
Use case: Bitweaversite1 has a lot of users in its db. The site is being migrated to a new one, without all the previous data. The new site has to have all the old users though, so they can still login using the IDs they had before.
Use case 2: Bitweaversite1 userbase is being merged with Bitweaversite2, and all users need to be imported into one userlist, but no content has to be added.
Steps to go through:
- In phpMyAdmin export user list.
- Open your db to extract the users from.
- Select tab "SQL"
- enter "SELECT `login`,`email`,`real_name`,`hash`,`registration_date` FROM `users_users` WHERE 1"
- Push Eport
- Make sure the output is CSV, "export table titles as first row" is checked, delimiter is ",", and check "download" button, no compression. Press start to export the list, and save.
- Enter the saved file and remove the lines of users "root", "guest" and "admin"
- Importing the exported userlist
- Goto http://example.com/users/admin/users_import.php
- Enter the saved file into the filename field.
- Choose the bottom item "do not mail users".
- Press import.
Problems till now:
- When importing, error:
Per line error: not able to store the CSV file.
After this import the first imported user is in the user list, other ones are not. Below the userlist is the notion: Total number of entries: xx where xx is the number of users there are supposed to be.
When re-importing the same list, i get an error for every imported user: The username "xxx" is already in use,The email address "xxx@example.com" has already been registered.
So the users are in the db, but they arent recognized as users.
If more info is needed to fix, ill be glad to help out.