How I fix ‘MySQL Shutdown Unexpectedly’ Error (MariaDB Aria Crash)

One common issue I have faced is MySQL not starting in XAMPP. To fix this, I first open the error logs to identify the issue. Mostly, it is related to MariaDB failing to recover. If so, I can go to XAMPP/mysql/data and make a backup of the data folder. After this, I can delete both the aria_log.* files and the aria_log_control file. This has fixed the issue 100% of the time so far.