WordPress.org

Ready to get started?Download WordPress

Forums

unable to connect to server (2 posts)

  1. ljmacphee
    Member
    Posted 7 years ago #

    I am configuring WP on my home OSX machine to use for testing and backup.

    I configured php/apache/mysql all test ok. I am using mysql 4.1.x

    I can log onto mysql from the command line using the name and password I gave myself. I can also load the db.

    When I try to do this from wp-config.php I get 'Error establishing a database connection'.

    I have verified the name and password from the command line. I can access mysql from the command line.

    I am using localhost as the DB_HOST

    What else can I check?

    Is there a way to find out which of these items ( db, user, password, host ) is failing?

  2. drmike
    Member
    Posted 7 years ago #

    You may be that one percent out there who has to use the actual domain name as the database host instead of localhost.

Topic Closed

This topic has been closed to new replies.

About this Topic