Forums
(@girwin)
14 years, 4 months ago
I had a similar problem connecting to mysql on localhost. I can connect to the database on localhost using mysql command line client but get connection failed with WordPress.
Using 127.0.0.1 as the hostname in the wp-config.php file fixed it for me.