New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

php can't connect to mysql


Post Reply New Thread Subscribe

 
Thread Tools
tdunphy

 
Member Since: Nov 12, 2009
Posts: 1
tdunphy is on a distinguished road

tdunphy is offline
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!
QUOTE Thanks

Post Reply New Thread Subscribe


« Ccode C++ input file | Shell Script in GeekTool trouble ... »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Installing MySql extension for PHP cmessineo OS X - Development and Darwin 0 05-20-2009 10:18 AM
SMTP and PHP MrGecko Web Design and Hosting 0 02-08-2008 02:50 PM
Apache, php and mysql on leopard skorpyo Web Design and Hosting 1 01-18-2008 03:38 AM
Offline php and MYSQL server. StonePatch OS X - Apps and Games 2 09-10-2006 11:52 AM
mac os update 10.3.7 and PHP MYSQL lomokev Web Design and Hosting 2 01-27-2005 03:44 PM

All times are GMT -4. The time now is 08:29 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?