Mobile app version of vmapp.org
Login or Join
Pope3001725

: Why has mysql stopped working on localhost and how do I fix it? I asked this at superuser but I'm having no joy there. I was really hoping someone could help because I'm stumped. I use a

@Pope3001725

Posted in: #Mysql #Php

I asked this at superuser but I'm having no joy there. I was really hoping someone could help because I'm stumped.

I use a MacBook Pro running Mac OS X 10.6.4

For a few years I have used MAMP to test websites locally but suddenly and for no apparent reason when I start the MAMP servers the mysql light stays red.

I'm not very clued up on how to actually run a server which is the main reason I use MAMP. I also have Sequel Pro installed for administering my databases. When I try to connect to mysql in Sequel Pro through a socket connection it says


The socket file could not be found in any common location. Please supply the correct socket location.


and then


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


I can connect and access all my databases if I connect with host 127.0.0.1 but I used to just connect through the socket and all was fine. Also all my testing sites which I hosted locally are no longer being processed by PHP.

I have no idea why this suddenly stopped working and any light someone could shine on the matter would be very much appreciated. A solution even more so.

Thanks.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Pope3001725

2 Comments

Sorted by latest first Latest Oldest Best

 

@Cofer257

I'd see if Skype is blocking your port. I've had similar problems in the past and found if Skype is open before I launch my server, it won't launch properly. IF Skype is the culprit, simply close Skype, launch your server, and then open Skype once your server is online.

10% popularity Vote Up Vote Down


 

@Moriarity557

Just to make sure .... disable all the start ups and reinstall MAMP.... Go to services and try to enable mysql from there...

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme