how to fix Error: MySQL shutdown unexpectedly - mysql

my xampp is giving this error
4:00:43 PM [mysql] Error: MySQL shutdown unexpectedly.
4:00:43 PM [mysql] This may be due to a blocked port, missing dependencies,
4:00:43 PM [mysql] improper privileges, a crash, or a shutdown by another method.
4:00:43 PM [mysql] Press the Logs button to view error logs and check
4:00:43 PM [mysql] the Windows Event Viewer for more clues
4:00:43 PM [mysql] If you need more help, copy and post this
4:00:43 PM [mysql] entire log window on the forums
I tried to fix the error by changing the port, but it didn't work, then I tried to change the data folder to the old-data folder, and it was fixed, but then the same error occurred again, and after a few days, I even uninstalled xampp several times, and it was the last one again. I installed the version, but after a few days it gave the same error again

Related

XAMPP - MySQL shutdown unexpectedly after importing a .sql file

Yesterday, I tried to import some .sql file (basic, fully-working). After I did so, I immediately lost my mysql connection. My first move was to just restart it through xampp control panel, but it didnt work, and gave me an error:
Error: MySQL shutdown unexpectedly.
3:14:34 PM [mysql] This may be due to a blocked port, missing dependencies,
3:14:34 PM [mysql] improper privileges, a crash, or a shutdown by another method.
3:14:34 PM [mysql] Press the Logs button to view error logs and check
3:14:34 PM [mysql] the Windows Event Viewer for more clues
3:14:34 PM [mysql] If you need more help, copy and post this
3:14:34 PM [mysql] entire log window on the forums
I cannot make it start. I already tried changing port number, installing fresh xampp (but there was another issue with importing database (innoDB)). So, I have a clean xampp instalation now, and a backup of a previous one - how can I at least manage to restore my data?
Logs does not contain any error line.

MYSQL not start in Xammp

When I try to start MYSQL in the xammp it generates an error.
This is the message I got. I tried a couple of thing for solving the issue.
1. Change the port number - doesn't work
2.Change xammp/mysql/data folder values.It also doesn't work
3:54:30 PM [mysql] Status change detected: stopped
3:54:30 PM [mysql] Error: MySQL shutdown unexpectedly.
3:54:30 PM [mysql] This may be due to a blocked port, missing dependencies,
3:54:30 PM [mysql] improper privileges, a crash, or a shutdown by another method.
3:54:30 PM [mysql] Press the Logs button to view error logs and check
3:54:30 PM [mysql] the Windows Event Viewer for more clues
3:54:30 PM [mysql] If you need more help, copy and post this
3:54:30 PM [mysql] entire log window on the forums

MySQL stopping in XAMPP

I try to run my MySQL from the XAMPP Control Panel v3.2.1, but it stops a bit after I hit Start. It says it's running for a solid second, then crashes. I tried changing its ports, but didn't work.
Here's what it said in the control panel:
8:08:18 PM [mysql] Error: MySQL shutdown unexpectedly.
8:08:18 PM [mysql] This may be due to a blocked port, missing dependencies,
8:08:18 PM [mysql] improper privileges, a crash, or a shutdown by another method.
8:08:18 PM [mysql] Press the Logs button to view error logs and check
8:08:18 PM [mysql] the Windows Event Viewer for more clues
8:08:18 PM [mysql] If you need more help, copy and post this
8:08:18 PM [mysql] entire log window on the forums
Go to Task Manager, see the services regarding mysqls and stop them as administrator and then try, it will connect.
If it doesn't work then try this command in your cmd:
/usr/local/mysql/bin/mysqladmin -u root -p shutdown

XAMPP - Error MySQL shutdown unexpectedly

When I open XAMPP and click start MySQL button and it gives me an error I had it started just before but now it isn't working.
13:06:29 [mysql] Error: MySQL shutdown unexpectedly.
13:06:29 [mysql] This may be due to a blocked port, missing dependencies,
13:06:29 [mysql] improper privileges, a crash, or a shutdown by another method.
13:06:29 [mysql] Press the Logs button to view error logs and check
13:06:29 [mysql] the Windows Event Viewer for more clues
13:06:29 [mysql] If you need more help, copy and post this
13:06:29 [mysql] entire log window on the forums
Logs:
enter link description here
Go to path C:\xampp\mysql\data
Search multi-master.info
Delete multi-master.info

Error to start mysql in xampp

7:43:04 PM [mysql] Error: MySQL shutdown unexpectedly.
7:43:04 PM [mysql] This may be due to a blocked port, missing dependencies,
7:43:04 PM [mysql] improper privileges, a crash, or a shutdown by another method.
7:43:04 PM [mysql] Press the Logs button to view error logs and check
7:43:04 PM [mysql] the Windows Event Viewer for more clues
7:43:04 PM [mysql] If you need more help, copy and post this
I could not able start mysql in xampp please help
This can happen if you use skype as they will share the same port. Change skype settings or remove it and try again. I can't remember the port number. I think its 80.
You cannot change port settings in modern skypes so uninstall.
It could be other applications also.
You can make xampp listen on another port but this beyond me