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:   mysql socket problem
Date:   2006-06-22 07:51:14
From:   carlco2
im getting the error


Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) in /Library/WebServer/Documents/sqlaccess.php on line 5



Warning: mysql_select_db(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) in /Library/WebServer/Documents/sqlaccess.php on line 9



Warning: mysql_select_db(): A link to the server could not be established in /Library/WebServer/Documents/sqlaccess.php on line 9


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


i can access mysql with cocoamysql and through phpmyadmin no problem i have mysql-standard-4.1.12-apple-darwin7.9.0-powerpc installed and aliased as mysql, tried sudo chown but still no joy accessing from apache webserver can someone shed some light? many thanks


1 to 2 of 2
  1. mysql socket problem - solved differently
    2009-08-23 07:27:49  ekklisis [View]

  2. mysql socket problem solved.. OSX10.4
    2006-06-23 04:59:13  carlco2 [View]

    • ignore last entry!
      2006-06-23 05:35:31  carlco2 [View]

      • ignore last entry!
        2007-01-23 19:42:33  bobga [View]

1 to 2 of 2