|
#1
| |||
| |||
| The first day I installed this it was running great with apache and php. But now it doesn't run. When I type >mysql in the terminal it says: ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) I did a search using find / -name "mysql.sock" and it doesn't exist. Nothing came up. I don't know what to do, please help. thanks kzo |
|
#2
| |||
| |||
| is the server running? Make sure you actually have mysql running. From the command line: % ps aux | grep 'mysql' This will show you all the mysql processes that are currently running. If the mysql server isn't running: % safe_mysqld This will seem to "freeze" the terminal, but that's normal. It means that you've started mysql under that login. Hope this helps. -- fee-5 PS: Unless you have mysql set up to start every time the box boots, you'll have to restart it manually with "safe_mysqld" every time. |
|
#3
| |||
| |||
| wow that was simple enough. thank you |
|
#4
| |||
| |||
| If you decide not to have mysql start up automatically when you reboot, a better way to start it is.... % safe_mysqld & Which will start mysqld as a background process -- leaving your terminal window available for other commands. Tyler |
|
#5
| ||||
| ||||
| Would he have to type "nohup safe_mysqld &" to make sure the process doesn't die when the Terminal window gets closed? -Rob |
|
#6
| |||
| |||
| yeah that too ![]() |
|
#7
| |||
| |||
| Ok, but I'm getting this same error message, and I do get something back from : ps aux | grep 'mysql' and the result is: steve 1184 0.0 0.1 5768 104 std RV 0:00.01 grep mysql but, when I try to access my DB, I get: ERROR 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) there was a lot of great information about starting the server if it isn't running, but what can I do in my situation? every time I reboot this happens, and I know there's gotta be a way to fix this, isn't there?? thanks -Steve |
|
#8
| ||||
| ||||
| i am having the same problem i am having the exact same problem... ![]() |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Are there any MySQL installs that actually work? | David Rodger | Mac OS X System & Mac Software | 15 | March 30th, 2003 01:56 AM |
| MySQL install problems | svenrg | Unix & X11 | 2 | November 21st, 2002 10:08 PM |
| MySQL & StartupItems Problem | turbine | Unix & X11 | 2 | September 27th, 2002 10:44 PM |