Reputation: 45
I have a website already built in PHP with MySQL as database.
Now, I want to move on to WordPress, but keep my existing database.
How can I install WordPress and make it work with my existing custom database that I developed during my previous custom website?
Upvotes: 1
Views: 3152
Reputation: 1
It pretty simple.
During Wordpress database information setup
Just write your new site or database name in the table prefix_..(name of new site)
hit summit wordpress will start a new installation
Check image:
Upvotes: 0
Reputation: 983
First install fresh WordPress with DB connections. Then port existing data from old tables to new tables like below queries:
insert into NEWTABLENAME select * from OLDTABLENAME.
Upvotes: 0
Reputation: 970
You need to install WordPress using the existing database credentials. Setup will create all the tables required to run WordPress on your existing database and rest of your database tables will remain as it is.
Now you can use your existing tables as per your need in WordPress
Upvotes: 2