Programming, CakePHP and commentary from Britain.

Popular

CakePHP Livesearch
CakePHP Sessions
VBScript & Excel
VBScript & Oracle

Search

E-mail

kdobson@gmail.com

Subscribe

RSS 2.0

Posts Tagged ‘os x’

Really getting MySQL to work on Leopard

There are numerous posts that are floating around the blogosphere and forums on getting MySQL working on Leopard (as in “cannot connect through /tmp/mysql). Some of them seem to be a bit over a top, and the solution I found (which may exist elsewhere) is quick and easy.

Open /etc/my.cnf as root:

    $ sudo nano -w /etc/my.cnf

Replace all occurrences of

    socket = /var/mysql/mysql.sock
with
 socket = /tmp/mysql.sock

Restart MySQL using either the preference pane or with the command line, and you should be away.

I think your mileage may vary, but for me, CocoaMySQL nor Ruby could connect to the MySQL daemon out of the box.