• Resolved DJL

    (@djl)


    I keep getting the message that there is an “Error establishing a database connection”. As I understand the wp-config-sample.php file (which I have renamed “wp-config.php” before uploading) I only have to enter name of the database, username and password. See below (password written in letters in my file, of course). Do I have to fill in somthing in “define(‘DB_COLLATE’, ”);”
    as well?

    <?php
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘viarecta_dk_db’); // The name of the database
    define(‘DB_USER’, ‘viarecta’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘********’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
    define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_COLLATE’, ”);

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter DJL

    (@djl)

    Ehh, but I have to install it! which is done now.

    Thread Starter DJL

    (@djl)

    I think I got it. What you meant. I’ve deleted install.php, logged in and changed the password.

    Hello.
    I’m having the same problem DJL was having establishing a database connection. However, when I tried to sub my “localhost” out for the actual URL, nothing changed. Is there something else that could be wrong?

    JGB

    Try to read more carefully: the OP did NOT use the actual URL of the blog but the address of the MySQL server. Big difference!

Viewing 4 replies - 16 through 19 (of 19 total)

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