vasim
vasim

Reputation: 45

How to install WordPress on existing database?

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

Answers (3)

Ebenezer Olorunwa
Ebenezer Olorunwa

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)

enter image description here

hit summit wordpress will start a new installation

Check image:

enter image description here

Upvotes: 0

ROHIT KHURANA
ROHIT KHURANA

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

Momin IqbalAhmed
Momin IqbalAhmed

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

Related Questions