• I’ve created a database, have set the username/password for it, but WP won’t connect.

    This is a machine running OS X Server 10.4, WordPress 3.4.1.

    Any help would be greatly appreciated. When I try to connect I consistently get errors.

    Is it because this web server’s running an older version of its OS?

    Thanks,

    Bob

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

    (@t-p)

    – 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.

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

    Are you using MySQL? Also what error are you exactly getting?

    Using the same credentials, can you connect to the MYSQL server via command line or so and access the WordPress db?

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

The topic ‘Can't connect to database’ is closed to new replies.