Importing users to Buddypress with custom fields

I ended up writing a bunch of MySQL statements. My process went:

  1. Add users into wp_users.
  2. Add first name into wp_usermeta.
  3. Add last name into wp_usermeta.
  4. Add nickname into wp_usermeta.
  5. Add last activity into wp_usermeta. (This is important for BuddyPress; otherwise, users won’t show up in the members-loop)
  6. Add name to BuddyPress.
  7. Add custom “phone” field to BP.
  8. Add custom “fax” field to BP.
  9. Add custom “company” field to BP.

If anybody doing something similar comes across this question and would like the SQL I used, feel free to message me. After half a dozen people requested the SQL code I have, I’ve written a blog post that includes the full SQL I used, plus a basic importer script. See: http://aendrew.com/content/importing-proprietary-user-database-buddypress-boss