Apache and Mysql not starting - mysql

Xampp Ver 5.5 installed in windows 10 pro 64bit, apache and mysql services are not starting automatically. Tried all solution provided earlier. Can some one help

Sometimes they wont start because other processes would be running on the same port number as of apache and mysql. Go to task manager processes, end the tasks that are running on that port and start your apache and mysql server

Related

MySql is not working with wamp server?

I have a fresh installation for wamp server 3.0.6 but the state is offline (orange). I recognized that the wampmysql64 is not listed in the services.msc. Additionally, start/resume in the MySql is inactive.
Note: I'm using win 8
Any suggestions please

Xampp 1.8.3-4 server issue with FTP and MySQL

It's been two days I'm Googling to find a solution and not successful as of now. I'm trying to get Xampp 1.3.8-4 working properly in my Mac Maverics.
Out of the 3 green indicators in the 'Manage Servers' window only Apache Web Server is running and trying hard to get MySql database and proFTPD running with no luck.
This has been working fine and only change I've done is installed WordPress and added a few themes if that helps.
Application logs says below;
Starting all servers...
Starting MySQL Database...
Starting ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd started
Starting MySQL Database...
Stopping all servers...
Stopping Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd stopped
Restarting all servers...
Starting MySQL Database...
Starting Apache Web Server...
/Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started
Starting ProFTPD...
Checking syntax of configuration file
/Applications/XAMPP/xamppfiles/proftpd/scripts/ctl.sh : proftpd started
Any help would be much appreciated.
Thank you.
This might be because the you are trying to run two Apache servers at the same time. I got the same problem on my Mac running Xampp 1.8.3-4 server and i got my Apple version of Apache server already running. If you open your browser and type 'localhost' and it say 'It Works', means the the apple version of Apache server is already running.
To stop the Apple version of Apache server:
In OSX 10.7 and earlier, you could start and stop the Apache Web Server in Control Panel, by choosing "Sharing" and then unchecking the "Web Sharing" checkbox. As of 10.8 this option is no longer in the control panel.
To disable Apple's version of Apache in current versions of OS X, open a Terminal window and type this command:
sudo apachectl stop
You will need to type your system password when prompted, then you should be able to start the XAMPP version of Apache.
Reference:
https://community.apachefriends.org/f/viewtopic.php?f=29&t=68351

xampp Mysql not starting while set as service

I'm using xampp v1.8.1
While not installing Mysql and Apache as services, everything is ok and I can run both of them on default ports.
but when I install them as services only Apache runs normally. but Mysql is frozen at "Attempting to start MySQL service..." and there is no error in its log file and nothing in xampp control panel log.
there is no problem with port numbers because it can run on default port without the service checkbox checked
FYI my OS is: Windows Server 2008 SP2.
thanks
The problem solved by using the xampp installer instead of extracted zip archive. It seems that there is some problems with the config in the portable edition.

Can I keep MYSQL and WAMP Server running together?

At first, I use Struts 2 to develop a website in Java web technology. So I installed Apache Tomcat as the localhost server and MYSQL as the database (MYSQL here is the full application from mysql.com, not the packages like XAMPP or WAMP...)
But now I switch to learn a little bit about PHP so I install WAMP full package. When I start all services of WAMP and go to browser and type localhost, everything work fine
But when I go to localhost/phpmyadmin, it seems to connect to the old MYSQL application in my computer (what I've used in Java web). And then I restart computer and use MYSQL Workbench (in the MYSQL application), but now it connects to the database of WAMP package, and I can not connect to the old database (in Java web) anymore
The solution is remove WAMP but I need WAMP for PHP
So I just want to ask how can I use MYSQL application and WAMP package together (MYSQL application for Java web and WAMP package for PHP)?
Thank you and apology for my bad English!
Go to C:\Program Files (x86)\MySQL\MySQL Server 5.1 and open my (Configuration file) and then navigate to
[client]
port=3306
Change this to
[client]
port:3307
This will make phpmyadmin to run on 3306 and Java-Mysql to run on 3307
You can of course keep both XAMPP and WAMP running together keeping in mind that you have changed the default ports for either of it to some other ports rather than 80,443 and 3306, but sometimes it could create conflict as when you install some other third party softwares or enable certain services that run on port 80,443,3306.
The best alternative here would be to install one of the servers inside a virtual machine with network configured as "host-only-adapter" so that from the base machine you could access XAMPP/WAMP installed on the virtual machine by just pointing the ip-address of the virtual machine through a web-browser.
or,
If you want to run both XAMPP and WAMP together on the same machine but access only one of the servers at a time then you could go ahead installing both of them one after another. But, keep in mind that before installing the other server you have to completely stop all the services running from the XAMPP or WAMP control panel then quit the application. After this step you can go ahead installing the other server without changing any configurations or port numbers. This is because in this case we assumed that only one of the servers would be accessed at a time. Hence, before launching the other server one has to completely quit the application that is running currently by stopping all of it's services. If skype is installed then one has to change the default incoming connection ports to other than port 80 and 443.
Like mentioned above, if at all the intention is to access both servers up and running concurrently then taking advantage of a virtual machine would be the best to avoid conflicts and a long-term troubleshoots eventually.
If you messed up changing ports and config files then you could end up with the following error while trying to access phpmyadmin from XAMPP control panel:
**mysql said: Cannot connect: invalid settings. xampp**
note: while launching the servers , run it as administrator else some services will not start properly.
"I TRIED INSTALLING BOTH XAMPP AND WAMP ON WINDOWS 10 AS SUCH AS POINTED BY MANY THREADS I CHANGED THE DEFAULT PORTS FOR MYSQL & APACHE XAMPP AS IT WOULD CONFLICT WITH WAMP ALREADY INSTALLED ONLY ENDING UP UNABLE TO ACCESS PHPMYADMIN FROM XAMPP CONTROL PANEL. THEN REINSTALLED XAMPP WITHOUT CHANGING ANY CONFIGS OR PORTS. STOP THE WAMP SERVICES, QUIT THE APP AND THEN LAUNCH PHPMYADMIN FROM XAMPP CONTROL PANEL. AT LAST IT WORKED!. THE PROCESS LOOKS SHORT THOUGH WHEN IN REALITY IT TOOK ME COUNTLESS HOURS AND PAIN RESEARCHING ON THE WEB AND TESTING FOR A POSSIBLE SOLUTION UNTILL I CAME UP WITH THIS."
Hopes, this quick tips and guides would be helpful.

Workbench did not install Mysql in services. Should I do it manually? How?

I just installed mysql workbench CE 5.2.
I tried to create and open a connection
and it said "Can't Connect to MYSQL server on '127.0.0.1' (10061)"
I looked around the answers on stackoverflow.
Eventually I found my way on services.
I saw that Mysql was not there.
dev.mysql.com says that I should install it with "mysqld" but it's not found inside the workbench installer.
What should I do?
If there is a way please tell it step by step.
Thank you!
Have you installed MySql server on the local machine? Workbench is just a GUI program to make it easier to access a database - be it on you local machine or a remote machine.
Just install mysql on your local machine. See http://dev.mysql.com/downloads/
There's a MySQL Installer for Windows which does install everything you need in this regard. Including several different server version, connectors, tools like Workbench and more. This installer should be your first attempt.
Of course you can also install the server separately. Download the msi and run the installer. Make sure you name your service properly. mysqld is usually not a name we use on Windows for a service. I recommend something like MySQL56 (for a 5.6 server).