Xampp in localhost works fine for a time then one day mysql starts and stops after few seconds

infrastructure

(Paulo Afonso Medeiros Kanda) #1

I strugled with this problem during the last semester of 2019 and found a solution.
Mysql starts and stops in xampp console.
In my case it had nothing to do with the “config” files

The problem was in mysql folder files. Inside that folder there is a backup folder, I restored its content acording to:

#############################
but atention
first backup the folder mysql (just in case)
and, more important
don´t replace ibdata1 file from data folder

#############################
best

Paulo Kanda