Cannot connect to local database.
Posted
by Smickie
on Stack Overflow
See other posts from Stack Overflow
or by Smickie
Published on 2010-04-29T19:03:04Z
Indexed on
2010/04/29
19:07 UTC
Read the original article
Hit count: 346
Hi,
I have apache and mysql set up on my local machine (Mac).
Whenever I go to any of my local sites I get the "Error establishing a database connection" whenever anything mySql related happens.
It was working perfectly yesterday, but when I started my computer today it is not.
I can login to mysql on the terminal and that all works fine, I can view database and run queries in the terminal. Look at all my table etc.
I've tried restarting apache.
Anyone know what's up? This is worrying.
© Stack Overflow or respective owner