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:   "Can't connect to mysql.."
Date:   2002-03-13 21:35:47
From:   rjolly@cape.com
Response to: "Can't connect to mysql.."

Warning: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in...


I get this error message too - I think because I can't actually start mysql, or it stops immediately after starting:


% sudo ./bin/safe_mysqld -user=mysql &
Starting mysqld daemon with databases from /usr/local/var
020314 00:27:53 mysqld ended


I don't get the command prompt back after running the safe_mysqld command ( I interrupt it with a crtl-c), unless I drop that trailing '&' argument. (Which I couldn't find it in the man page.)


But with or without the ampersand, the results are the same.


I tried ps auwx - mysql doesn't show up.


Any ideas?


And thanks for the very helpful series!


1 to 1 of 1
  1. "Can't connect to mysql.."
    2003-05-07 21:11:33  jcotton [View]

1 to 1 of 1