Women in Technology

Hear us Roar

  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!


Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Just to add
    2006-08-19 19:54:10  JeremyGee [View]

    Sorry the first line of those commands should have read

    sudo mkdir -p /var/mysql

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

      OK, i guess that was the ugly way of doing what the last post suggested first. And appatently there are security issues with that. So disregard all i have posted!!

      Please can someone help as the other fix doesnt work for me!