I'm trying to use PHP to connect to a MySQL database (to which I
have already set up). Individually each works (PHP - ver 4.4.1 and
MySQL ver 5.0.24 standard); I can write PHP into an html page, and I
can connect to my MySQL database through the 'mysql' command from
Terminal.app, but I can't get a connection from PHP to the MySQL
database
Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/mysql/mysql.sock' (2) in /Users/wsquires/Sites/
newtest.php on line 12
Could not connect: Can't connect to local MySQL server through socket
'/var/mysql/mysql.sock' (2)
Using terminal, I check /Var and there isn't even a 'mysql'
directory there, much less a file 'mysql.sock'. Thinking maybe the
lack of the directory was the problem, I created one there with 'sudo
mkdir mysql' then did a 'sudo chown root:wheel mysql' so it would
look like the other directories under /var, but to no avail.
Please respond off-list - thanks!
William H Squires Jr
4400 Horizon Hill #4006
San Antonio, TX 78229
[EMAIL PROTECTED] <- remove the .nospam
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>