PHP + MySQL

Discussion in 'Mac Apps and Mac App Store' started by crazycaddy, Mar 18, 2007.

  1. crazycaddy macrumors newbie

    Joined:
    Nov 19, 2006
    #1
    I am having trouble 'linking' php and mysql, i installed mysql using an official installer and it is all working, but I don't know how to make it work with the php that comes preinstalled with osx I get this message when trying to use it in PHP.

    Code:
    Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) in /Library/WebServer/Documents/db.php on line 2
    Error connecting to mysql
     
  2. panoz7 macrumors 6502a

    panoz7

    Joined:
    Nov 21, 2005
    Location:
    Raleigh, NC
    #2
    I wasn't aware that php came pre-installed with OS X.

    To install it I used a preconfigured module called entropy.

    Try that out. It configures everything for you and made installing PHP a snap.
     

Share This Page