• I’m having what seems to be a common error:

    “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.”

    However, this has all been set up on my own computer, and I know that a) the database is running (I can connect on the command line) b) the database name is correct (again, can connect on the command line) c) user name and password are correct (or else they also word not work on the command line). I have checked several times for correct spelling of all that information, and it’s still all the same. I’ve changed nothing else in the wp-config.php file.

    Latest version of WordPress, latest version of MySQL, PHP version 4.4.4, all on Mac OS X 10.4.8.
    Any ideas? Might MySQL be too new? WordPress requirements just say “4.0 or higher”, so I don’t think this should be an issue.

    Thanks,
    I.W.

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is a server you’ve built yourself? While server support is a bit beyond what we care to get involved with…. have you confirmed that you have PHP and MySQL communicating at all? Perhaps install phpMyAdmin and see if you get that working first.

    Thread Starter incredibleweirdo

    (@incredibleweirdo)

    I won’t really say it’s a server I built myself. I downloaded and installed MySQL according to instructions on the MySQL website for OS X. Apache and PHP are alreay a part of Mac OS X, I just started Personal Web Sharing (Apache) after enabling the proper module for PHP (uncommenting 2 lines in httpd.conf).
    Other than the fact I’m using the most recently available versions of MySQL, I followed instructions on MacZealots.com (and the wordpress install instructions) for setting up wordpress on OS X.

    I’m not at home right now, but when I get back I’ll try your suggestion of phpMyAdmin. Other than that, I was basically curious if there are issues with WordPress 2.1 and MySQL 5.1

    I.W.

    Mac OS X does something stupid with localhost: use 127.0.0.1 instead from PHP.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Database Error, yet correct info’ is closed to new replies.