Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Socket Problem with PHP and MySQL

I have a brand-new install of Tiger Server running on an Xserve, with mysql and php both running happily. I am able to view my databases just fine in Navicat, but whenever I try to connect to a mysql database from php (using mysql_connect), I get a sock error:

Could not connect to MySQL: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (13)

I have read in the forms how you need to specify in the my.cnf file the sock, which is what I've done, and that doesn't help.

Any ideas?

Posted on Aug 23, 2005 10:04 AM

Reply
4 replies

Socket Problem with PHP and MySQL

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.