• I just installed WordPress and I’m getting the following error message:

    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.

    Are you sure you have the correct username and password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?

    I’ve checked and rechecked to make sure my information in wp-config.php is correct. I’ve reset my password using my host’s control panel and STILL can’t get it to work using my login.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you created the database and the database user. Look over these directions.

    Thread Starter violanthe

    (@violanthe)

    I have created the database, but I did run into some problems creating a database user. Just as the directions explained, I went to “Add New User” and attempted to add a user that would have all privleges to the database. However, when I tried to create a new user, it came up with error messages. And so, what I did was the give my primary login (the one I use to login to phpMyAdmin) access privileges to the “wordpress” database, and thus on the wp_config.php file, I have that primary login name and password. I suspect this could be part of the trouble, but I’m at a loss on how to fix it.

    Do you have the database host name correct. Also your host could be using a non standard port for there database. Have a look at this documentation for more help.

    Thread Starter violanthe

    (@violanthe)

    It’s telling me “localhost” in phpMyAdmin so that’s what I’m using. How do I look up the port in phpMyAdmin to see if my host is in fact using a non-standard port?

    Thread Starter violanthe

    (@violanthe)

    Stupid Yahoo! I finally stumbled onto something in their help topics that says to use “mysql” for the host name on php configuration files instead of “localhost”. Immensely confusing considering that “localhost” is specified all over phpMyAdmin (which is installed directly by Yahoo).

    For future reference, for anyone using Yahoo! Geocites pro hosting, remember this.

    I have the error message and cannot figure out what is the correct server names etc and port. Following is some of the information that I have from my hosting provider

    1) To gain access to your database, you need to enter “mysql.deescribe.com” as the server name for the database

    2) Server version: 5.0.41-log
    Protocol version: 10
    Server: mysql.deescribe.com via TCP/IP
    User: MyName@imu68.infomaniak.ch
    MySQL charset: UTF-8 Unicode (utf8)

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

The topic ‘Error establishing a database connection’ is closed to new replies.