As I understand your challenge, if MySQL isn’t starting and you see the "MySQL shutdown unexpectedly" error, it could be due to issues like blocked ports, missing dependencies, or data file corruption.
You can try with below points: Check the Error Log: Click the "Logs" button in XAMPP and check the mysql_error.log for more details on the failure.
Port Conflict: Ensure MySQL’s default port (3306) isn’t used by another app. You can change the port in the my.ini file if needed.
Data File Corruption: If corruption in files like ibdata1, .frm, .ibd is suspected, restore from a recent backup. If no backup is available there are many tools available like Stellar Repair for MySQL to repair the corrupted files and recover data that may be helpful to you.
Reinstall XAMPP: If nothing works, reinstall XAMPP after backing up your databases.