MacOS X -> “Error establishing a database connection” executing install.php?
-
I keep getting the error “Error establishing a database connection” when trying to execute the install.php script.
As far as I know, my wp-config.php settings are correct, and mysql has been setup properly…so I’m not really sure why this is failing.
From my wp-config:
…
define(‘DB_NAME’, ‘wordpress’); // The name of the database
define(‘DB_USER’, ‘wordpress’); // Your MySQL username
define(‘DB_PASSWORD’, ‘tempPwD’); // …and password
define(‘DB_HOST’, ‘localhost’); // …and the server MySQL is running on
…The user, login and database seem to all work with mysql directly:
ocelot[12]: mysql -uwordpress -ptempPwD wordpress
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12 to server version: 5.0.22-standardType ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.
mysql> exit
ByeAnyone know what I’m missing?
This is on a MacBook Pro running MacOS X 10.4.8.
Wordpress 2.0.3. PHP 4.4.1. MySQL 5.0.22.ocelot[13]: php -v
PHP 4.4.1 (cli) (built: Mar 5 2006 09:58:20)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
ocelot[15]: mysql –version
mysql Ver 14.12 Distrib 5.0.22, for apple-darwin8.5.1 (i686) using readline 5.0
- The topic ‘MacOS X -> “Error establishing a database connection” executing install.php?’ is closed to new replies.