Support » Networking WordPress » Error establishing a database connection

  • Resolved saravisentin113

    (@saravisentin113)


    Hi, we are 2 interns and we have a problem.
    At the end of june, we had create a wordpress site, and now, when we go on 127.0.0.1/wordpress/wp-login.php appears this message: Error establishing a database connection

    What we have to do?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, for some reason WordPress can’t connect to the database that you have set up for it, it might be more than 1 reasons so let’s start with the easiest. Make sure that your server is running and check your wp-config.php file that has the correct credentials along these lines.

    define('DB_NAME', 'database-name');
    define('DB_USER', 'database-username');
    define('DB_PASSWORD', 'database-password');
    define('DB_HOST', 'localhost');

    Thank you, we have resolved!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.