php can't connect to mysql

Joined
Nov 12, 2009
Messages
1
Reaction score
0
Points
1
Hi

I have php 5.3.0 installed on my snow leopard mac. mysql 5.1 is installed and running. everything is local. I can log into mysql from the command line but for some reason even tho I am feeding my php scripts the correct login and they used to work they can no longer connect to my local mysql install.

I could use some help troubleshooting this.

Specifically this line used to work:

Code:
if (!($connection = @ mysql_connect("localhost","user","shhhhh")))
          die("Could not connect");

now this script jumps right to the die line.

I'm honestly not sure what changed here.
:shrug:
help!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top