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:   ignore last entry!
Date:   2006-06-23 05:35:31
From:   carlco2
Response to: mysql socket problem solved.. OSX10.4

The reason you must not use /tmp/mysql.sock is that any Tom, Dick or Other can simply delete it and bring your php-mysql system down.


The fix is actually simple:
sudo mkdir -p /var/mysql
sudo chgrp mysql /var/mysql
sudo chmog g+w /var/mysql


edit/create /private/etc/my.cnf and add the line:
socket=/var/mysql/mysql.sock


restart mysql


now the new php wil find the socket info in the right place, if you change php then you might need to tell that about the new secure location.
http://www.macosxhints.com/article.php?story=20060111113313511


1 to 1 of 1
  1. ignore last entry!
    2007-01-23 19:42:33  bobga [View]

1 to 1 of 1