ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Apache Web-Serving With Mac OS X, Part 5
Subject:   test.php does not work
Date:   2002-07-13 04:45:17
From:   thegws
When I do the 'Post-installation wrap up' and enter the following into Terminal:


cd /usr/local/mysql/
sudo ./scripts/mysql_install_db
sudo chown -R mysql /usr/local/mysql
sudo ./bin/safe_mysqld --user=mysql &


it returns two lines that say:


Starting mysqld daemon with databases from /usr/local/mysql/data
020713 04:34:16 mysqld ended


Then when I do the next step of creating test.php and try to load it in my browser, it returns the following:


Warning: Can't connect to local MySQL server through socket '/Private/tmp/mysql.sock' (61) in /Library/WebServer/Documents/test.php on line 5


Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/Private/tmp/mysql.sock' (61)
in /Library/WebServer/Documents/test.php on line 5


Warning: Can't connect to local MySQL server through socket '/Private/tmp/mysql.sock' (61) in /Library/WebServer/Documents/test.php on line 9


Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/Private/tmp/mysql.sock' (61)
in /Library/WebServer/Documents/test.php on line 9


Warning: MySQL: A link to the server could not be established in /Library/WebServer/Documents/test.php on line 9


Can't connect to local MySQL server through socket '/Private/tmp/mysql.sock' (61)


Can anyone help?


1 to 4 of 4
  1. test.php does not work
    2004-01-04 13:32:46  anonymous2 [View]

  2. test.php does not work
    2003-08-28 18:13:55  anonymous2 [View]

  3. test.php does not work
    2002-07-23 23:17:01  macaddict [View]

  4. test.php does not work
    2002-07-19 12:38:10  placebo [View]

    • test.php does not work
      2002-07-19 20:22:40  placebo [View]

1 to 4 of 4