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:   Just to add
Date:   2006-08-19 19:52:09
From:   JeremyGee
I'm really new to all of this and have been following through the tutorials this afternoon. All happened as advertised (very rare for a computing tutorial!!) until i had to stray from the instructions to get a up-to-date version of MySQL.


I had a similar problem to those posted below, with the following output from the php file:


Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2)


and various other problems. Finally i have managed to make it work.


Did this by simply creating the directory structure and moving the mysql.sock file from the /tmp directory into the newly created directory. The commands i used are:


sudo mkdir -p mysql
cd /tmp
sudo mv mysql.sock /var/mysql/


And as if by magic, it worked - and the 4 hours spent on it seem a little less wasted!


Fantastic articles, the only useful tutorials on this subject that i've found!


Jeremy


1 to 1 of 1
  1. Just to add
    2006-08-19 19:54:10  JeremyGee [View]

    • Just to add
      2006-08-19 20:21:24  JeremyGee [View]

1 to 1 of 1