WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] 2 Blogs one SQL

[Resolved] 2 Blogs one SQL

  • I have been reading thro the codex and the forums and I understand that you modify the wp-config.php to create a separete “blog”.

    However, I also read that this modification needs to be done BEFORE the initial installation of WP. Is that correct? If I have soodz.com/blog running happily, I could not add soodz.com/blog2 now using the same database?

    I am a new learner so I apprecaite the paitence if this has been answered. I tried to understand it but need further clarification. Thanks
    Chelle
    http://soodz.com/blog

Viewing 6 replies - 1 through 6 (of 6 total)
  • For the second blog you need:
    – a separate installation of the WP files in their own directory, e.g. /blog2/
    – in the wp-config file change only the table prefix from wp_ to something else (e.g. second_ 🙂
    – then run the installation it as you did with the first one

    You can have as many WordPress blogs installed in the same database as you like. The database is just a container for the tables. As long as each blog has a distinct $table_prefix defined in wp-config.php, then there should be no problems at all.

    And yes, the $table_prefix needs to be defined in wp-config.php before you install your blogs.

    Ok just so I understand (and once again thank u for ur paitence)

    1.I would leave the orignal blog files alone.
    2.Make new directory for New Blog /blog2
    3. Before installing I go into the wp-config file and change it to ex. wonka_
    4. Place the modified wp files into the new directory
    5. Do the famous 5 minute install

    Right?

    Thank You so much for sharing your knowledge!

    chelle

    It seems to you got it right 🙂
    Good luck!

    Thanks so much!!!
    I will let you all know if it worked!
    You guys ROCK!
    chelle

    w00t w000t!!!
    It totally worked!
    THANK YOU GODS & GODDESSES OF WP!

    hehe!
    chelle

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] 2 Blogs one SQL’ is closed to new replies.
Skip to toolbar