• After running WP 3.1.3 for just a few weeks on a new site, I decided to activate the “network” settings. I am using subdomains and am hosting at Hostgator. All seemed to go fine. I can still access my original site at http://99andunder.com. I can also use the network admin features to create a new site (seemingly) successfully.

    However, the new site (such as sf2.99andunder.com) is inaccessible. I get the error in my browser “Error establishing a database connection.” I have read a few other related threads and tried disabling all plugins before creating a new site, but still the same error. Am not a database expert, so I have not mucked w/MySQL settings.

    Any advice? I am happy to post whatever config or file information is needed. Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    -First, try contacting the hosting provider if the database server is online / if they have any other problem at their end, or they made any changes to your account, or if there are any limitations/restrictions, etc .

    – double check your wp-config.php file settings for the database name, database username and database password. This is where most errors occur.

    -Then check that you don’t need to change the database host from “localhost” to something else. You can get that info from your hosting provider.

    -Check you have actually created a database with the same database name as is in your wp-config.php file.

    -Last, but not least, if all that information is correct your database probably has a problem with it, and you may need to contact your hosting provider.

    There are also many threads on this topic on these forums: http://ww.wp.xz.cn/search/Error+establishing+a+database+connection?forums=1

    Thread Starter sherpabizdev

    (@sherpabizdev)

    Thanks for the reply t-p. Is your advice generic for any WordPress installation, or specific to my problem of converting to a network installation?

    My primary domain works fine (http://99andunder.com) but any subdomain I create (like sfbay.99andunder.com) is unreachable.

    Thanks again for your help. Any additional clarification would be great.

    Andy

    Moderator t-p

    (@t-p)

    generic

    Try posting in the Multisite forum.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘WordPress Network error "error establishing database connection"’ is closed to new replies.