There's probably a simple answer to this, but I'm kinda stuck.
I'm trying to install wordpress locally (so I can work on themes). I've got to the wp-admin/install.php step, and I'm getting an "Error establishing a database connection" message.
I've edited my wp-config.php file to
define('DB_NAME', 'wordpress'); // The name of the database
define('DB_USER', 'wordpress'); // Your MySQL username
define('DB_PASSWORD', 'password'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
I'm guessing the problem is around here somewhere. However, on the command line,
mysql -u wordpress -p password
gets me into a mysql prompt without a problem, so I know the server is running and the password is what I thought it was. From there,
show databases;
displays a list that includes the wordpress database.
I've tried granting all privileges to wordpress@localhost again, and turning off the firewall, but to no avail.
Does anyone have any suggestions as to what I could try next? From what I know it should all be working now, but it's not. Any help would be much appreciated.
G