Apache Web-Serving With Mac OS X, Part 5
Subject:   Finally Got It to Work!
Date:   2002-06-06 19:18:01
From:   pogo
Hello... after 2 days of struggling with this program, I finally got it to work! I even went so far as to reinstall MacOSX on my machine to start from scratch. What was the problem, and the subsequent solution? I kept getting the error message to the effect that "localhost cannot connect to MySql... or something close to that.

When I compared the instructions given here for setup to those on Marc Liyanage's website ( ) I kept missing the fact that there is a wildcard character * in one of the lines. In the instructions given here, it is missing.

  • Open a terminal window and type in the following commands (without the double quotes):
    type "cd /usr/local/mysql"
    type "sudo ./scripts/mysql_install_db", enter administrator password when asked
    type "sudo chown -R mysql /usr/local/mysql/*"
    type "sudo ./bin/safe_mysqld --user=mysql &"
    Use it with "mysql test"

    Note the above wildcard character! This is for the binary install - add the * in the applicable place for the source install and you should be good to go!

    Hope this helps someone,