Can not start MySQL in control panel

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Can not start MySQL in control panel

Postby Rooster242 » 26. July 2013 19:57

Help!!!

I Installed XAMPP on OS X Mountain Lion and all was well, until I restarted my comp. Now when I try to start MySQL in the manager it won't start. The application log only shows "Starting MySQL Database...". When I try to do anything with mysql in terminal all I get is
Code: Select all
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock' (61)


I've tried setting the permissions on the /Applications/XAMPP/xamppfiles/var/mysql/ directory as outlined in this post: http://community.apachefriends.org/f/viewtopic.php?t=23018 but still have the same problem.

Activity monitor shows no other MySQL processes running.

On a side note, I can't start apache from the control panel either. The application log shows this:
Code: Select all
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started

but it still says "stopped" in the manager and it is definitely not starting because http://localhost does not work in my browser. I can manage to start apache from terminal with 'apachectl start' but something is wrong if I can't start it in the manager right?

Oh and when I try to use /Applications/XAMPP/xamppfiles/xampp I get
Code: Select all
XAMPP is currently only availably as 32 bit application. Please use a 32 bit compatibility library for your system.

Seriously!?!?
Rooster242
 
Posts: 2
Joined: 26. July 2013 19:35
Operating System: OS X Mountain Lion

Re: Can not start MySQL in control panel

Postby Rooster242 » 26. July 2013 23:43

Solved.

The directory /Applications/XAMPP/xamppfiles/temp/mysql was not writeable. I did a
Code: Select all
sudo chown -R root:admin /Applications/XAMPP/xamppfiles/temp/mysql

then a
Code: Select all
sudo chmod -R 776 /Applications/XAMPP/xamppfiles/temp/mysql

and then
Code: Select all
mysql.server start

and it started right up.

I still can't start either MySQL or Apache from the XAMPP Manager though.
Rooster242
 
Posts: 2
Joined: 26. July 2013 19:35
Operating System: OS X Mountain Lion


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 10 guests