I leave a guide for those who have a problem with mysql on how to recover the database, regardless of the environment. In my case I have the XAMPP environment (since it allows me to connect remotely via the web), but the environment has no influence.
The “MySQL shutdown unexpectedly” error can occur on any MySQL installation, not just XAMPP. This issue can arise due to various reasons such as corrupted data files, incorrect configurations, permissions issues, or even conflicts with other services on the system.
Guía de Recuperación de Base de Datos [MySQL/XAMPP] – Solución al Error: MySQL Shutdown Unexpectedly