Thread: php can't connect to mysql
11-12-2009, 07:43 PM #1
php can't connect to mysql
- Member Since
- Nov 12, 2009
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:
if (!($connection = @ mysql_connect("localhost","user","shhhhh"))) die("Could not connect");
I'm honestly not sure what changed here.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By CaldwellYSR in forum Web Design and HostingReplies: 7Last Post: 06-27-2011, 06:03 AM
By conor in forum OS X - Operating SystemReplies: 5Last Post: 06-11-2009, 08:44 PM
By blinkdude182 in forum Web Design and HostingReplies: 4Last Post: 02-08-2009, 02:52 AM
By richardmojo in forum Web Design and HostingReplies: 2Last Post: 05-09-2005, 11:05 PM
By design2 in forum Web Design and HostingReplies: 3Last Post: 08-07-2004, 07:22 PM