Support » Installing WordPress » installing into existing database

  • I currently use 1 database that includes a phpBB installation on a different domain (same root) and a mailing list installation on the same domain.

    I just want to be sure I can just install Word Press using the same database and if there are any special instructions to do that.

    Also I want to install it in it’s own folder so I can have the main sight at the top level

Viewing 9 replies - 1 through 9 (of 9 total)
  • The $table_prefix actually allows you to not only install WordPress in the same database as other software’s tables, but will allow you to install multiple copies of WordPress using the same database.

    And while you can install WordPress in your webroot folder, you can also install in a sub-folder and still make WordPress act as the ‘main’ page. See Giving_WordPress_Its_Own_Directory.

    I tried this, but I get a database connnectivity error. I copied the database name, user, password (host is localhost) from my other blog’s config file, then made the table prefix “wp2_”. Still getting database connectivity problems suggesting that I have the wrong user, password, or host.

    I am hosted on bluehost. I installed this second installation (the one I’m trying to get connectivity on) manually because my host offers Fantastico and only WP 2.2 I needed a previous version to get SBM Module to work. Any ideas why I can’t get this second database to run ?

    Is the second installed actually installed at wp2_ though? It will have a connectivity problem if it isn’t actually there. You did a fresh install of 2.1.3 or something installing under wp2_ prefix?


    AHA! I’ve hit my “wall of stupid,” where it’s time to ask the really stupid question. What do you mean “installed under wp2_” prefix? I thought this was a PHP thing that would append calls to the database. I installed the blog in another sub-directory, at the same level as the current blog.

    Okay, now that you know how stupid I am, would you still help me, or am I beyond hopeless?

    When you install WordPress in your chosen database, by default it puts the database structure like this:


    It is not dependent on where you physically installed the wordpress files themselves on the server. That is the way your first install would most likely be.

    What MichealH was getting as was this second install can be in the same database, but you have to specify in the installation script (when you run it) where to put the database structure. In this case it wouldn’t be wp_ but rather wp2_ for the prefix.

    Does that make sense?


    Yes. But, here’s the thing. When I follow the install directions (bear with me, because I’ve always used Fantastico, so this is new territory), it asks me to edit the config file, upload everything, and then run the install script (which I do by going to, in my case, That’s when I get the error, so, you see, it’s kind of circular. I get the error even when I leave the default “wp_” prefix.

    Try this link for installing through the web interface, but requires you deleting wp-config.php first as it will try and create it.


    Okay. I tried it and get this:

    Warning: Cannot modify header information – headers already sent by (output started at /home/arrested/public_html/broadus_wp21/wordpress/wp-admin/setup-config.php:23) in /home/arrested/public_html/broadus_wp21/wordpress/wp-includes/wp-db.php on line 361

    …and the same database connection problem. I commented out the header line on line 361, but still got the database error.

    Is this possibly my host?

    Don’t comment out anything.
    But make sure you don’t have empty space after the last
    in your config file.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘installing into existing database’ is closed to new replies.