• I just installed WordPress and I’m getting the following 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 have logged on to MySQL cPanel and this is what it says:

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

    2) The name of my database that has been created is deescribecom

    3) 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)

    My main question is what should the parameters of the wp-config.php be?

    The following is the contents of wp-config,php with of course the correct login and password;

    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘deescribecom’); // The name of the database
    define(‘DB_USER’, ‘USER@imu68.infomaniak.ch’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘MyPassword’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);

    Thank you for your help

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