• Resolved TonyWilliams

    (@tonywilliams)


    I’m new to WordPress and am in the process of designing a site for a club. We currently only have one MySQL database available on our webhost. I have used this to design a site using a particular theme but I want to try the site in an alternative theme so that we can compare the two sites. I assume I can load the second site into a different WordPress folder on the server on the host but what do I do about the MySQL database? Can I use one database for two WordPress sites? If I can’t anyone any ideas how I can achieve what I’m trying to do?
    Thanks
    Tony

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can have more than one WordPress installed in the same database. You just have to make sure that the table prefix for each is different. The prefix is set during the installation. There’s an option for that. If you don’t change it the default prefix is wp_. So you first WordPress probably has that table prefix. When you install the second WordPress just change the prefix to something else (e.g. wp2_, anotherwp_, etc.).

    Although for various reasons it’s preferable to install each WordPress instance in a different database, you shouldn’t have any problems running multiple sites from the same database.

    Hope this helps.

    Thread Starter TonyWilliams

    (@tonywilliams)

    Thanks that’s great news I’ll try that and come back if I have a problem.
    Tony

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Running two copies of WordPress’ is closed to new replies.