XAMPP - MySQL shutdown unexpectedly after importing a .sql file - mysql

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.

Related

how to fix Error: MySQL shutdown unexpectedly

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

MYSQL WONT OPEN XAMPP

Trying to run MYSQL in XAMPP. I get an error message. Below is the error log. tried replacing mysql folder in xammp with a new one didnt fix it. pls help?
9:22:50 AM [mysql] Error: MySQL shutdown unexpectedly.
9:22:50 AM [mysql] This may be due to a blocked port, missing dependencies,
9:22:50 AM [mysql] improper privileges, a crash, or a shutdown by another method.
9:22:50 AM [mysql] Press the Logs button to view error logs and check
9:22:50 AM [mysql] the Windows Event Viewer for more clues
9:22:50 AM [mysql] If you need more help, copy and post this
9:22:50 AM [mysql] entire log window on the
Try enabling your wifi, if it is, then check your wifi certificates.
If this does not work, manually uninstall XAMPP and then reinstall it.

MySQL Shutdown Unexpectedly even after changing port of Mysql

When i am starting mySQL in XAMPP it is showing me this error.
Yesterday it was working fine. I have also installed composer yesterday.
I am using php version 7.3 (Latest One)
9:35:30 AM [mysql] Attempting to start MySQL app...
9:35:30 AM [mysql] Status change detected: running
9:35:32 AM [mysql] Status change detected: stopped
9:35:32 AM [mysql] Error: MySQL shutdown unexpectedly.
9:35:32 AM [mysql] This may be due to a blocked port, missing dependencies,
9:35:32 AM [mysql] improper privileges, a crash, or a shutdown by another method.
9:35:32 AM [mysql] Press the Logs button to view error logs and check
9:35:32 AM [mysql] the Windows Event Viewer for more clues
9:35:32 AM [mysql] If you need more help, copy and post this
9:35:32 AM [mysql] entire log window on the forums
I have tried to change the port of mySQL in my.ini file from 3306 to 8111 and then run it as an administrator but it still shows the same error.
I also tried to delete ibdata1 file but still it is not working for me.
I have used the composer for the very first time so i was just thinking may be it is due to the composer. As i have installed it in a developer mode. But i also delete the composer folder from appdata/roaming/composer

MySQL Server has gone away at loading

I start my mysql server with xampp control panel. It worked all the time. I donĀ“t know what have changed, but now the server is crashing if I wanna connect via a mysql program or connect to my local homepage which sends requests to the mysql server.
This is the error in xampp control panel.
12:22:38 [mysql] Error: MySQL shutdown unexpectedly.
12:22:38 [mysql] This may be due to a blocked port, missing dependencies,
12:22:38 [mysql] improper privileges, a crash, or a shutdown by another method.
12:22:38 [mysql] Press the Logs button to view error logs and check
12:22:38 [mysql] the Windows Event Viewer for more clues
12:22:38 [mysql] If you need more help, copy and post this
12:22:38 [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