2 WordPress using one database and tables (3 posts)

  1. pricklepantz
    Posted 3 years ago #

    So I read this topic dated 7 years ago http://wordpress.org/support/topic/multiple-installs-single-database

    Is it possible to run 2 WordPress installation using same database and tables?
    Current context is that if I want to have 2 different themes but do not want to duplicate post from one to another.

    Your advise is much appreciated.

  2. michael.mariart
    Posted 3 years ago #

    It is possible to have 2 WordPress installations running from the same database. You would not want to use the same tables though. Using the same tables means that you would have the same info and settings on both sites.

    What you need to do is change this line in your wp-config.php files so that the prefix is different for each site:

    $table_prefix = 'wp_';

    Change 'wp_' to anything else for the second site, and you'll be fine.

  3. pricklepantz
    Posted 3 years ago #

    I see, got it Michael.
    Thank you for your answer, really appreciate it.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.