I have a Wordpress site that needed to have 9,000+ users imported to set up a Directory Listing. I imported them from an existing MySQL (non-wordpress) database and everything imported just fine. Usernames, passwords and display names (MD5 hashed, but I tested and WP will change the password to phpass on the first login).
Thing is... They have all been imported with a user role of NONE. I need to change this to Subscriber. Now, I can get into my phpMyAdmin and I can see the field wp_capabilities in the wp_usermeta table. I can see that my admin accounts are a:1:{s:13:"administrator";b:1;} and I know that Subscribers are a:1:{s:10:"subscriber";b:1;}.
I can also see that there are many values entered into each user_id. Question is? How can I write a bulk MySQL command to add in the value wp_capabilites='a:1:{s:10:"subscriber";b:1;}' into each user_id except 1, 2 and 3 ie. the newly imported users?
Thanks in advanced!