Apache Friends Support Forum

It is currently 09. February 2010 16:41

All times are UTC + 1 hour




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: MySQL Deactivated ???
PostPosted: 12. August 2009 11:50 
Offline

Joined: 12. August 2009 11:45
Posts: 3
Hi There

I have just installed the latest release of xampp (loving it by the way) onto a clean Windows install and when i bring up the xampp status page it says that MySQL is Deactivated ? Any suggestions ?

Many Thanks


Top
 Profile  
 
 Post subject: Re: MySQL Deactivated ???
PostPosted: 12. August 2009 12:07 
Offline
AF-Moderator

Joined: 01. February 2004 12:38
Posts: 17072
Location: Stuttgart / Germany
- Have you changed anything after the installation (passwords, config files, etc.)?
- Apache, MySQL is running as Application or Service (Svc checked in CP)
- You installation path?
- Your operating system?
- This happens every time you access the status page?
- Any errors/warning during execution of the setup script?


Top
 Profile  
 
 Post subject: Re: MySQL Deactivated ???
PostPosted: 12. August 2009 12:20 
Offline

Joined: 12. August 2009 12:13
Posts: 2
I have the same problem

Starting from the mysqld.exe --console from the command line gives the following results

C:\xampp\mysql\bin>mysqld --console
090812 21:01:32 [Note] Plugin 'FEDERATED' is disabled.
090812 21:01:32 [Note] PrimeBase XT (PBXT) Engine 1.0.08 RC loaded...
090812 21:01:32 [Note] Paul McCullagh, PrimeBase Technologies GmbH, http://www.p
rimebase.org
090812 21:01:33 InnoDB: Started; log sequence number 0 46409
Can't start server: listen() on TCP/IP port: No such file or directory
090812 21:01:33 [ERROR] listen() on TCP/IP failed with error 10013
090812 21:01:33 [ERROR] Aborting

090812 21:01:33 InnoDB: Starting shutdown...
090812 21:01:34 InnoDB: Shutdown completed; log sequence number 0 46409
090812 21:01:34 [Note] PrimeBase XT Engine shutdown...
090812 21:01:34 [Warning] Forcing shutdown of 1 plugins
090812 21:01:34 [Note] mysqld: Shutdown complete

I would imagine that TCP/IP would be active as I have no problem with internat access.

Before upgrading to this latest version I needed to start mysqld.exe directly. It wouldn'd start from the control panel or the batch file.

Regards

Dennis.


Top
 Profile  
 
 Post subject: Re: MySQL Deactivated ???
PostPosted: 12. August 2009 12:32 
Offline
AF-Moderator

Joined: 01. February 2004 12:38
Posts: 17072
Location: Stuttgart / Germany
Quote:
I have the same problem

Which problem:
- You can't start MySQL?
- You can start MySQL, but it's shown as "deactivated" in the status page?

Quote:
Starting from the mysqld.exe --console from the command line

I guess that's not the default way in XAMPP to start MySQL. Please use:
- the "mysql_start.bat".
- ot the XAMPP Control Panel
- or the xampp cli (xampp_cli.exe start mysql).

If it can't start, there should be something in the MySQL *.err file (\xampp\mysql\data).

Quote:
090812 21:01:33 [ERROR] listen() on TCP/IP failed with error 10013

Maybe your networkcard is not active or a firewall is blocking "mysqld.exe".


Top
 Profile  
 
 Post subject: Re: MySQL Deactivated ???
PostPosted: 12. August 2009 12:40 
Offline

Joined: 12. August 2009 11:45
Posts: 3
Code:
- Have you changed anything after the installation (passwords, config files, etc.)?
- Apache, MySQL is running as Application or Service (Svc checked in CP)
- You installation path?
- Your operating system?
- This happens every time you access the status page?
- Any errors/warning during execution of the setup script?


Hi Wiedman

After install, i went to the security page to set the root password for phpmyadmin and apart from that i have not changed anything. I have Apache, MySQL, Tomcat set as Service which are all running (if i look at the Services through Windows Administration). My install path was C:\ and i use Windows 7 RTM. Apache runs smooth, so does Tomcat and i can access MySQL through phpmyadmin just fine. But when i look at the Status page it reports MySQL as Deactivated

Did not encounter any errors during setup either.

Many Thanks


Top
 Profile  
 
 Post subject: Re: MySQL Deactivated ???
PostPosted: 12. August 2009 13:09 
Offline
AF-Moderator

Joined: 01. February 2004 12:38
Posts: 17072
Location: Stuttgart / Germany
Quote:
i went to the security page to set the root password for phpmyadmin

Ah, thanks. A small bug:
The "root" user password is not the problem. But you have also checked to set a password for the phpMyAdmin User 'pma'.

To fix this, you can can replace the file "\xampp\htdocs\xampp\mysql.php" with:
Code:
<?php
    if (@mysql_connect("localhost", "pma", "")) {
        echo "OK";
    } else {
        $err = mysql_errno();
        if ((1044 == $err) || (1045 == $err) || (1130 == $err)) {
            echo "OK";
        } else {
            echo "NOK";
        }
    }
?>


Top
 Profile  
 
 Post subject: Re: MySQL Deactivated ???
PostPosted: 12. August 2009 13:18 
Offline

Joined: 12. August 2009 11:45
Posts: 3
Thanks, its now sorted ... Just loving xampp ... :D


Top
 Profile  
 
 Post subject: Re: MySQL Deactivated ???
PostPosted: 12. August 2009 14:41 
Offline

Joined: 21. January 2005 16:27
Posts: 99
Location: The Netherlands
This does the trick for me as well. Wonderful fast support again!

I guess this temporary fix will become permanent in the next XAMPP release?

Thanks again.
Simon


Top
 Profile  
 
 Post subject: Re: MySQL Deactivated ???
PostPosted: 12. September 2009 22:30 
Offline

Joined: 12. September 2009 19:50
Posts: 1
This solution worked for me to. Cheers.

What does that code change in the php exactly?


Top
 Profile  
 
 Post subject: Re: MySQL Deactivated ???
PostPosted: 22. October 2009 04:36 
Offline

Joined: 22. October 2009 04:29
Posts: 1
Thanks for the solution, very helpfull... :D


Top
 Profile  
 
 Post subject: Re: MySQL Deactivated ???
PostPosted: 26. October 2009 03:18 
Offline

Joined: 30. January 2007 23:34
Posts: 30
foxy001 wrote:
This solution worked for me to. Cheers.

What does that code change in the php exactly?

It checks for some error-massages and set Errors to noErrors like "Access Granted" whether with or without error... bad coding...not professionel... like a newbie says "I dont like erorrs, i dont wanna see them, take em off !"

But it works :roll:


Top
 Profile  
 
 Post subject: Re: MySQL Deactivated ???
PostPosted: 26. October 2009 04:15 
Offline
AF-Moderator

Joined: 01. February 2004 12:38
Posts: 17072
Location: Stuttgart / Germany
Quote:
bad coding...not professionel...

Fine. This code is looking for a "working" MySQL server. How would you code this?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group