XAMPP - MySQL shutdown unexpectedly
Method:1
- Go to
C:\xampp\mysql\data
- You will see a folder named as mysql/data
- Rename that folder from mysql/data to something else like mysql/data_not_useful any name that you want to give.
- Create a new folder named as mysql/data.
- Copy all the files of the mysql/backup and paste in mysql/data.
- Now go to mysql/data_not_useful and copy the file ibdata1 from there.
- Then paste it in mysql/data (You have to replace the file).
- Restart your xampp server.
- Now run your mysql server.
Method:2
Port 3306 may running for other application so, check it out if any, kill(stop) them then Mysql will run on same 3306 port.
To check port details
- click on task bar
- open Task manager
- Details
- PID(port id) check for the port
- if any other application running right click on port id- End task
Method:3
1.Export project data from DATABASE
2. Delete data table file in mysql/data
3.Create database IMPORT all data
Tagged: