WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 2 or 3 blogs on 1 database (4 posts)

  1. rustysven
    Member
    Posted 8 years ago #

    Is it possible to run 2 or 3 blogs on 1 MySQL database, if so can it be done at setup and how?

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    In wp-config.php is this line:

    $table_prefix = 'wp_';

    change that for each blog:
    $table_prefix = 'wp1_';
    $table_prefix = 'wp2_';
    etc..

  3. rustysven
    Member
    Posted 8 years ago #

    Thank you for your help, tried it but it failed....then I got to thinking...my account allows sub domaines, so I set up a sub domain, and installed wordpress onto it, but the both blogs point to the same MySQL database, just changed the wp-config.php, as you suggested above.
    Or maybe thats what you ment...I am a newbie to this sort of thing.
    :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags