WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Various blogs on same hosting? (7 posts)

  1. SerennaLorenz
    Member
    Posted 6 years ago #

    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.

  2. shadow
    Member
    Posted 6 years ago #

    You can install another blog in a separate subdomain or directory and use the same database but with a different suffix - such as wp2_

  3. SerennaLorenz
    Member
    Posted 6 years ago #

    How can I do that?

  4. shadow
    Member
    Posted 6 years ago #

    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_';

  5. SerennaLorenz
    Member
    Posted 6 years ago #

    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.

  6. shadow
    Member
    Posted 6 years ago #

    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]

  7. SerennaLorenz
    Member
    Posted 6 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.