Connecting to external database
-
Hi,
I’m currently redesigning a website for a user group for a specific IT security product. The current website was very quickly put together and while functional, is very messy and doesn’t use a CMS.
The redesign is being done with WordPress to allow easier updating and user management, however I’m struggling with user membership between the two sites using the WP-Members plugin.
There are currently ~1000 registered users on the old site, using a simple database to store their details. I need these users to be able to login to the new site using their existing information, however I’m unsure how to connect the login/registration forms to the old database.
I thought about importing the old database content in to the new website’s database, but as the fields are handled differently (In the old db all fields were stored in one database, but in the new db the basic info is stored in the ‘users’ database, while their extra info is stored in the ‘usermeta’ database.) Another issue is that I think the passwords in the old and new db use different hashing techniques, so the old ones may be incompatible with the new login forms.
Is there a way I could run an SQL statement to import the old users while changing their fields to match the new ones? Is there any way around this, or will I need all the users to re-register?
Thanks for your help
David
- The topic ‘Connecting to external database’ is closed to new replies.