WordPress.org

Support

Support » How-To and Troubleshooting » Unable To login or View website due to database error

Unable To login or View website due to database error

Viewing 2 replies - 1 through 2 (of 2 total)
  • when you get a database connection error it is basically that

    I would check your wp-config.php file and make sure the settings are correct

    you can try this test script
    set the dbhost user pass

    <?php
    $link = mysql_connect('db_host', 'db_username', 'db_password');
    if (!$link)
    {
    die('Could not connect the database: ' . mysql_error());
    }
    echo 'Database Connected successfully';
    mysql_close($link);
    ?>
    Moderator Jose Castaneda

    @jcastaneda

    THEME COFFEE MONKEY

    It sounds to me like the database name may not be correct. I would ask your hosting company to look into it. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable To login or View website due to database error’ is closed to new replies.
Skip to toolbar