Support » Installing WordPress » Various blogs on same hosting?

  • Resolved SerennaLorenz


    Hi, I need to set up a blog as soon as I can, I bought the domain, in my hosting plan I can have verious domains. Though I can only have one database and one mySQL account. Can I still install another blog or what should I do and how? I am sort of confused with this.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You can install another blog in a separate subdomain or directory and use the same database but with a different suffix – such as wp2_

    How can I do that?

    define(‘DB_NAME’, ‘same‘);
    define(‘DB_USER’, ‘same‘);
    define(‘DB_PASSWORD’, ‘same‘);
    define(‘DB_HOST’, ‘same‘);
    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);

    ***The following needs to be different for each blog you install in the same database

    $table_prefix = ‘wp2_‘;

    I did that and I get this error message which I don’t know why it may occur since I did everything exactly like that and both user name and passwords are correct as well as the db name.

    Error establishing a database connection

    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.

    I hate to say it, but it is very likely that you have entered the information incorrectly. The only reason I say this, is because in 99.99% of cases this proves to be the case.

    Check for any spaces that should not be there, mistyped characters, anything different at all.

    If you still cannot get it to work, send me an email and i will take a look for you if you like… [shadow12 gmail]

    Hey thank you very much I just solved my problem, I missed to fil one of the entries were it said localhost, i ignored it because the “99% i won’t have to change it” … but I did have to change it, anyways… thanks a lot.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Various blogs on same hosting?’ is closed to new replies.