MySQL won't start

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

MySQL won't start

Postby tobym » 20. December 2009 21:05

Hi,

I downloaded and installed XAMP, and everything seems to be up and running except MySQL won't start. When I click start it just says:

MySQL did not start!

Please take a look into the log file of MySQL for informations on why MySQL did not start.

But - I don't know where this log file is. When I open the errorlog there doesn't appear to be anything related to MySQL:

[Fri Jul 31 16:45:49 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Jul 31 16:45:50 2009] [notice] Digest: generating secret for digest authentication ...
[Fri Jul 31 16:45:50 2009] [notice] Digest: done
[Fri Jul 31 16:45:52 2009] [notice] Apache/2.2.12 (Unix) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations
[Sun Dec 20 11:21:45 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Sun Dec 20 11:21:47 2009] [notice] Digest: generating secret for digest authentication ...
[Sun Dec 20 11:21:47 2009] [notice] Digest: done
[Sun Dec 20 11:21:48 2009] [warn] pid file /Applications/XAMPP/xamppfiles/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Dec 20 11:21:48 2009] [notice] Apache/2.2.12 (Unix) DAV/2 mod_ssl/2.2.12 OpenSSL/0.9.8k PHP/5.3.0 mod_perl/2.0.4 Perl/v5.10.0 configured -- resuming normal operations

Previously I tried running MAMP and also had a problem with MySQL, this is the error I got with that one if it helps/could be the same problem:

091220 10:39:15 mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended
091220 10:40:55 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
091220 10:40:55 [Warning] Can't create test file /usr/local/mysql/data/toby-muresianus-macbook-pro.lower-test
091220 10:40:55 [Warning] Can't create test file /usr/local/mysql/data/toby-muresianus-macbook-pro.lower-test
/Applications/MAMP/Library/libexec/mysqld: Can't change dir to '/usr/local/mysql/data/' (Errcode: 13)
091220 10:40:55 [ERROR] Aborting

Thank you!

Toby
tobym
 
Posts: 4
Joined: 20. December 2009 20:48

Re: MySQL won't start

Postby owenpeery » 23. December 2009 14:32

I too just installed XAMMP and when I started it for the first time and tried to start MySQL I got the following error message.

"XAMPP's MySQL can not start while another mysql server is running. Please turn it off and try again."

I had previously installed and used MAMP but before this new XAMMP install I deleted MAMP and emptied the trash. I can't think of any other way that a MySQL server could be running.

I will try restarting the computer to see if that solves the problem, but I am in the middle of updating my music library and cannot stop the computer yet. Maybe that's all it is.
owenpeery
 
Posts: 1
Joined: 23. December 2009 14:25

Re: MySQL won't start

Postby tobym » 31. December 2009 18:43

Any luck? When I restarted I got the error saying it couldn't start while another MySQL server was running the first time I tried to start it, but then it went back to the previous error. I deleted MAMP and have web sharing turned off. Does anyone even just know where the MySQL log file is? I've looked all around and can't find it, apologies if I'm overlooking something basic.
tobym
 
Posts: 4
Joined: 20. December 2009 20:48

Re: MySQL won't start

Postby caltuna » 01. January 2010 05:39

Open Activity Monitor and see if there are any mysql or httpd processes running. If so, kill them and then try XAMPP again.

Rebooting should also work... unless you have set MAMP start up at login (see Sys Pref/Accounts.)
caltuna
 
Posts: 111
Joined: 05. May 2009 16:35

Re: MySQL won't start

Postby ralf.krause » 01. January 2010 16:47

ralf.krause
 
Posts: 26
Joined: 26. January 2009 11:10
XAMPP Version: 1.8.3-1
Operating System: OS X 10.8.2

Re: MySQL won't start

Postby tobym » 05. January 2010 16:19

Thanks everyone for your advice - I looked into it further.

When I don't have any other applications running besides xampp, there's no MySql or httpd processes, and web sharing isn't enabled. Restarting doesn't fix the problem, though it did at one point change the error message as described in a previous post.

I googled to find how to start and stop Mac OS X's MySQL installation from the command line, and tried the following:

sudo /usr/local/mysql/support-files/mysql.server stop
Password:
ERROR! MySQL manager or server PID file could not be found!

(no effect on trying to start MySQL from XAMPP)

sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop
Stopping MySQL database server

Which still had no effect on my XAMPP problem, but I was surprised to see that MySQLCOM was in my startup items folder at all - it doesn't show up in my login items control panel. I tried to drag it out of that folder, but it's apparently read-only; I can delete it, but I'm afraid it might be read-only for a reason and doing so would break something. And if there are no mysql or httpd processes running, it's possible it's not affecting things anyway.

My friend had tinkered unsuccessfully with trying to get MySQL started months ago before I found XAMPP, so while I thought all the changes had been backed out, it's possible there are one or two vestiges of that process around.

Any thoughts? Thanks again.
tobym
 
Posts: 4
Joined: 20. December 2009 20:48

Re: MySQL won't start

Postby karlic » 18. January 2010 17:17

The fix is here: viewtopic.php?f=29&t=38617#p154911

Bascially,

sudo rm /Applications/XAMPP/xamppfiles/bin/mysql.server
sudo ln -s /Applications/XAMPP/xamppfiles/share/mysql/mysql.server /Applications/XAMPP/xamppfiles/bin/mysql.server
karlic
 
Posts: 1
Joined: 18. January 2010 17:13

Re: MySQL won't start

Postby tobym » 31. January 2010 18:14

Still no dice - same error. Thanks for the thought, though. I'm just using the mysql installation on my hosting company's server for now, though it would still be awesome to test stuff out locally. Is there really no mysql error log file like the one indicated in the message?
tobym
 
Posts: 4
Joined: 20. December 2009 20:48


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 4 guests