Error establishing a database connection – Mac/Apache
-
I’m trying to setup WordPress on my MacBook Pro using Apache 2.2, PHP 5.x and WordPress 2.8.4.
Unzipped the wordpress install in /Library/WebServer/Documents, and edited wp-config.php to:
— cut here —
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wordpress’);/** MySQL database username */
define(‘DB_USER’, ‘root’);/** MySQL database password */
define(‘DB_PASSWORD’, ”);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);
— cut here —The database can be accessed correctly based upon the information specified in wp-config.php.
mysql -uroot -hlocalhost wordpress
I’ve seen the video at http://educhalk.org/blog/?p=148 and verified everything is correct.
However still getting the dreaded “Error establishing a database connection”.
Any suggestions ?
-Arun
The topic ‘Error establishing a database connection – Mac/Apache’ is closed to new replies.