XAMPP cannot start MySQL (No applications running on same port) - mysql

I have been using XAMPP/MySQL with no problems for a few weeks now. I even started XAMPP/MySQL today with no problems. I closed it, and now a few hours later I open it and it is giving me this error. I have tried restarting my PC and looked to see if any applications were running on port 3306 (none were found)
7:23:06 pm [mysql] Error: MySQL shutdown unexpectedly.
7:23:06 pm [mysql] This may be due to a blocked port, missing dependencies,
7:23:06 pm [mysql] improper privileges, a crash, or a shutdown by another method.
7:23:06 pm [mysql] Press the Logs button to view error logs and check
7:23:06 pm [mysql] the Windows Event Viewer for more clues
7:23:06 pm [mysql] If you need more help, copy and post this
7:23:06 pm [mysql] entire log window on the forums
The logs

I had this issues before ..
what I did was that, I Installed a Clean version of XAMPP form its official Website.
I suggest you uninstall the current XAMPP server also Make sure to
Delete any lingering XAMM related documents before Installing the New
Copy.

Related

MySQL shutdown unexpectedly xampp .This may be due to a blocked port Can someone help out so that i can start using the xampp server?

Error: MySQL shutdown unexpectedly.
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check
the Windows Event Viewer for more clues
If you need more help, copy and post this
entire log window on the forums

How to start mysql on the Xampp Control Panel?

I have been working on phpmyadmin for the past couple of days. Everything was working perfectly fine until I saw this problem which was not there yesterday.
4:19:45 PM [mysql] Error: MySQL shutdown unexpectedly.
4:19:45 PM [mysql] This may be due to a blocked port, missing dependencies,
4:19:45 PM [mysql] improper privileges, a crash, or a shutdown by another method.
4:19:45 PM [mysql] Press the Logs button to view error logs and check
4:19:45 PM [mysql] the Windows Event Viewer for more clues
4:19:45 PM [mysql] If you need more help, copy and post this
4:19:45 PM [mysql] entire log window on the forums
What I don't understand is that the problem was not there all these days, so I really do not know what is wrong.
I tried deleting ibdata1 folder from my xampp/mysql/data directory, but every time I start mysql on the xampp control panel, it reappears again and again.
Can someone please give me a proper solution? I would really appreciate it. Thank you.
Check programs that are running on same port, with netstat command.
Also check you xampp mysql log file.
Try changing the port in the my.ini to something other than the default (3306) and start it up again, if this works, you have another service listening on port 3306.
Then you can find out which with netstat. you can find the process, shut it down, restart mysql with the default port in xammp.
If it doesn't work, there is something wrong with your installation. going through the logs for errors will help troubleshoot that.
I had the same problem and solved my issue by trying the following operation for different hardware and software configuration :
**NOTE: Every step includes closing and starting of XAMPP after performing each step.**
If you're having any SQL related software, then uninstall that software.
Some higher version may not support try installing 5.x instead of 7.x
Try starting the application with Admin Permission by right click on application => Run as administrator

Issue in XAMPP controlling Apache shutdown

I get this error when I run Apache in XAMPP:
This may be due to a blocked port, missing dependencies,
improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check
the Windows Event Viewer for more clues
If you need more help, copy and post this
entire log window on the forums

Apache is not starting how to resolve this error;Localhost database is not working

I quit the skype i though same port but still not working..
I tried with restart my pc and restarted Xamppp. But Not Working.
8:47:28 PM [Apache] Attempting to start Apache app...
8:47:28 PM [Apache] Status change detected: running
8:47:28 PM [Apache] Status change detected: stopped
8:47:28 PM [Apache] Error: Apache shutdown unexpectedly.
8:47:28 PM [Apache] This may be due to a blocked port, missing dependencies,
8:47:28 PM [Apache] improper privileges, a crash, or a shutdown by another method.
8:47:28 PM [Apache] Press the Logs button to view error logs and check
8:47:28 PM [Apache] the Windows Event Viewer for more clues
8:47:28 PM [Apache] If you need more help, copy and post this
8:47:28 PM [Apache] entire log window on the forums
8:47:30 PM [Apache] Problem detected!
8:47:30 PM [Apache] Port 80 in use by "Unable to open process" with PID 4!
8:47:30 PM [Apache] Apache WILL NOT start without the configured ports free!
8:47:30 PM [Apache] You need to uninstall/disable/reconfienter code heregure the blocking application
8:47:30 PM [Apache] or reconfigure Apache and the Control Panel to listen on a different port
I am using xampp i am getting error while starting xampp how to resolve this error.
SOLUTION:
On your XAMPP Control Panel, Stop Apache Module, click on Config button, then select Apache (httpd.conf). Find (Ctrl+F) 80 on the file. Replace all 80s with a random value you like (8080 looks good) and save the file. Now click on Config button, then select Apache (httpd-ssl.conf). Find (Ctrl+F) 443 on the file. Replace all 443s with a random value you like (4433 looks good) and save the file. Start the Apache Module again.
Now APACHE must work fine :)
NOTE:
If you would like to know the exact reason for this error, open your Task Manager and go to Details tab. Find the process with the PID mentioned on the XAMPP error log. Here what exactly has happened is your port is busy with another process which is indicated by the PID (Process ID). So in the solution, what we did is, allocating another port for APACHE.
ADDITIONAL TIP:
When you type localhost on your browser's address bar, it uses the port 80 by default. But since you make changes to the default ports of Apache Module, make sure you adjust your localhost's address accordingly. For an example, if you change your port 80 to port 8080, you will have to use http://localhost:8080/ all the time on the browser, so that your browser will know Apache is now using port 8080, not the default port.
See it is not hard :) In your topic, you say "..database is not working", but the error log has no mention on MySQL. If your MySQL module also has the same error, you have to do a simple port configuration as above. If you get stuck, you can find the steps from my blog article: http://ashenlive.blogspot.com/2016/08/web-programming-with-php.html

Error: MySQL shutdown unexpectedly

When starting mysql in XAMPP control panel I get the following error
14:35:23 [mysql] Error: MySQL shutdown unexpectedly.
14:35:23 [mysql] This may be due to a blocked port, missing dependencies,
14:35:23 [mysql] improper privileges, a crash, or a shutdown by another method.
14:35:23 [mysql] Press the Logs button to view error logs and check
14:35:23 [mysql] the Windows Event Viewer for more clues
14:35:23 [mysql] If you need more help, copy and post this
14:35:23 [mysql] entire log window on the forums
I have been having this problem with mysql not starting so I've re-installed XAMPP. MYsql then worked but today when starting again I got the above error. I've searched around google to find a solution, I've also deleted this file ibdata1 in the following directory C:\xampp2\mysql\data but Mysql didn't start probably. I had a look in the log files and I am getting the following error
2014-02-20 14:35:16 6528 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
Also, this all started after I configured Mysql with grails and hibernate, so I was thinking could the be the issue why I can't start MySQL in Xampp?
You can spend ages trying to find out what has gone wrong - installing over the top can create as many issues as it solves.
I suggest you go for a clean install as you have no data to worry about.
Uninstall XAMPP
Delete / move directory C:\xampp2\
Reboot
Instal XAMPP
Test
Open the task manager and stop mysql, then just start mysql in xampp and you're done.