WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Installation to 3 domains under 1 host (5 posts)

  1. creativegal
    Member
    Posted 3 years ago #

    I successfully installed WordPress to one of my domains. If I want to add it to the others, do I need to create a different MySQL username for each domain? Not a tech person, so go easy on me. :) thanks

  2. creativegal
    Member
    Posted 3 years ago #

    Actually, it looks like this is the problem: I already have WordPress in use on the one domain. In the instructions, I see this tidbit:

    "If you have only one database and it is already in use, you can install WordPress in it - just make sure to have a distinctive prefix for your tables, to avoid over-writing any existing database table."

    Can someone please translate into non-techie language -- what tables and how and where do I give them a prefix?

    thanks!

  3. creativegal
    Member
    Posted 3 years ago #

    Nevermind, I finally found the info. In case anybody else is looking, it's here: http://codex.wordpress.org/Installing_Multiple_Blogs

  4. guguwpblog
    Member
    Posted 3 years ago #

    you should use different databases for different domains, how ever if you want to use same database you should change the table prefix in wp-config.php. give different table prefix to each of your wordpress blogs.

    in your wp-config.php, you will find these lines where you will enter the name of user and database and password.

    define('DB_NAME', 'wordpress');     // The name of the database
    define('DB_USER', 'username');     // Your MySQL username
    define('DB_PASSWORD', 'password'); // ...and password

    below few lines there will be
    $table_prefix = 'wp_';
    change it to acc. to your preference like

    $table_prefix  = 'wp1_';
    $table_prefix  = 'wp2_';
    $table_prefix  = 'xxx_';

    table prefix are used to store the content you upload while writing posts and pages and if you keep same prefix it will mess up with other blog's database tables.
    just remember to give different name to different blog

    its up-to you if you wanna use same user-name or different.

  5. guguwpblog
    Member
    Posted 3 years ago #

    oh! when you posted the comment, i think i was busy writing it

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.