Error: MySQL shutdown unexpectedly - mysql

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.

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

Unable to use MySQL on XAMPP

11:42:05 AM [mysql] Error: MySQL shutdown unexpectedly.
11:42:05 AM [mysql] This may be due to a blocked port, missing dependencies,
11:42:05 AM [mysql] improper privileges, a crash, or a shutdown by another method.
11:42:05 AM [mysql] Press the Logs button to view error logs and check
11:42:05 AM [mysql] the Windows Event Viewer for more clues
11:42:05 AM [mysql] If you need more help, copy and post this
11:42:05 AM [mysql] entire log window on the forums
I've been trying to use MySQL on XAMPP but it's showing this error. I can't seem to find the solution. Any help would be really appreciated. Before this I was also unable to start Apache but then I disabled World Wide Web Publishing Services and it's working fine on port 80 and 443. Does this error have anything to do with the previous error?
maybe trying port 3306 will make your XAMPP can using MySQL, hope it help you
I haven't used XAMPP for a long time now, but yes I remember the same issue that happened to me. The other service might be taking the ports required by XAMPP.
You should stop both of them first.
To rectify it, one thing that you can do for sure is to: Start XAMPP as an administrator. This will allocate the required ports for the service.Should work fine then.
I found the answer to the question.
Close XAMPP if it's open and go to in the following directory:
C:\xampp\mysql\backup
Copy everything in that folder and go to:
C:\xampp\mysql\data
Select everything in that folder and paste what you copied and run XAMPP as an administrator then start MySQL

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

Why will MySQL not run on xampp?

When I tried to run MySQL on Xampp it says this:
Attempting to start MySQL app...
Status change detected: running
Status change detected: stopped
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
I have been looking for an answer for about an hour and nothing has worked. If anybody knows a possible solution please tell me. Thanks!
Try to run xammp in the Administrator mode.

MySQL is not starting

When my XAMPP Apache is starting, while I start MYSQL the following error is occurring:
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
Kindly help me on this.
If you got Skype or teamviewer Quit it and restart your wamp server this might help.
Please do post logs