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:   2007-01-23 19:42:33
From:   bobga
Response to: ignore last entry!

in the my.cnf (mine is in /etc/my.cnf) file you need two sections to contain the socket directive


[client]
socket=/var/mysql/mysql.sock


[mysql]
socket=/var/mysql/mysql.sock


Without both of them you are pointing to different sockets (with the server (mysql) mysqld and the client (client) mysql and mysqladmin apps)


It may be better just to copy one of the sample cnf files from /usr/local/mysql/support-files. Copy one of the samples (i used my-small.cnf as it's just for my home web server) to /etc/my.cnf and edit as needed (i.e. change /tmp/mysql.sock to /var/mysql/mysql.sock)


Good luck,
s-