![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
last week I installed and successfully set up mysql on mac.. (10.6.6) was able to connect fine from unix shell and from PHP and JSP.. but today, just a week later, I can't connect with either PHP or JSP, and when try to connect from unix shell I get this error: Can't connect to local MySQL server through socket '/tmp/ mysql.sock' (2) what is this please... would appreciate some help... thank you.. |
#3
| |||
| |||
|
|
last week I installed and successfully set up mysql on mac.. (10.6.6) was able to connect fine from unix shell and from PHP and JSP.. but today, just a week later, I can't connect with either PHP or JSP, and when try to connect from unix shell I get this error: Can't connect to local MySQL server through socket '/tmp/ mysql.sock' (2) what is this please... would appreciate some help... |
#4
| |||
| |||
|
|
last week I installed and successfully set up mysql on mac.. (10.6.6) was able to connect fine from unix shell and from PHP and JSP.. but today, just a week later, I can't connect with either PHP or JSP, and when try to connect from unix shell I get this error: Can't connect to local MySQL server through socket '/tmp/ mysql.sock' (2) what is this please... would appreciate some help... Is your MySQL server running? *The installation may have started the server but not set it up to automatically restart on reboot. *If you have rebooted since it last worked, this might be the problem. Your client and server must *AGREE* on where to put the socket. Problems like this may occur on the Mac if you end up with two different MySQL installations and your path is finding the wrong client software. The solution is either to remove one of the versions, or ensure that your path finds the correct one first. |
#5
| |||
| |||
|
|
Your client and server must *AGREE* on where to put the socket. Problems like this may occur on the Mac if you end up with two different MySQL installations and your path is finding the wrong client software. The solution is either to remove one of the versions, or ensure that your path finds the correct one first. oh brother.. I just don't remember having had to "turn on" mysql server in windows (unless I remember wrong...) |
|
how do I turn it on on the mac??? I only have one mysql installation (I think..;-) |
#6
| |||
| |||
|
|
Your client and server must *AGREE* on where to put the socket. Problems like this may occur on the Mac if you end up with two different MySQL installations and your path is finding the wrong client software.. The solution is either to remove one of the versions, or ensure that your path finds the correct one first. oh brother.. *I just don't remember having had to "turn on" mysql server in windows (unless I remember wrong...) A *good* mac-specific installer would do this automatically. *You didn't say how it was installed, and if you tell me, I don't know enough about Macs to describe this, but there's a run-on-boot folder somewhere. Did you check whether the server was really not running? |
|
how do I turn it on on the mac??? I only have one mysql installation (I think..;-) I think some Macs have managed to actually come with MySQL preinstalled, or it gets installed with some other app that doesn't necessarily tell you what it's installing. |
#7
| |||
| |||
|
|
Did you check whether the server was really not running? how do I check? to install followed instr's here, http://techxplorer.com/2011/03/03/in...l-on-mac-os-x/ |
|
how do I turn it on on the mac??? I only have one mysql installation (I think..;-) I think some Macs have managed to actually come with MySQL preinstalled, or it gets installed with some other app that doesn't necessarily tell you what it's installing. now THAT's clever.....;-) at any rate installed "stand-alone" mysql b/c need to be able to connect both from JSP/Tomcat and PHP. no sense in having more than one instance of it, is there now? (I hope I don't have more installed.. but at any rate, this one worked fine the first day I intsalled it.. ) |
#8
| |||
| |||
|
#9
| |||
| |||
|
|
last week I installed and successfully set up mysql on mac.. (10.6.6) was able to connect fine from unix shell and from PHP and JSP.. but today, just a week later, I can't connect with either PHP or JSP, and when try to connect from unix shell I get this error: Can't connect to local MySQL server through socket '/tmp/ mysql.sock' (2) what is this please... would appreciate some help... thank you.. |
#10
| |||
| |||
|
|
Did you check whether the server was really not running? how do I check? *to install followed instr's here, http://techxplorer.com/2011/03/03/in...l-on-mac-os-x/ On that page, did you do the "Step 3" part about installing the startup item? *Note that this page has been edited since it was first posted, specifically about the startup item. |
|
Working fine initially, then not working after a reboot, is a sign that auto-start of the server is not configured, or is failing. |
![]() |
| Thread Tools | |
| Display Modes | |
| |