In my case, I used XAMPP, and there was a log that reported me an error. To find it, go to the XAMPP control panel and click "Configure" for MySQL, then click "Open Log."
The most recent log data is at the bottom, and the log is organized by date, time, some number and text in brackets, which may contain βNoteβ or βErrorβ. One that says βErrorβ is probably causing the problem.
For me, my mistake was the tablespace that was causing the problem, so I deleted the database files in the specified location.
Note. The tablespace files for your XAMPP installation may be in a different place, but they were in /opt/lampp/var/mysql for me. I think this is typical of XAMPP in Debian based distributions. In addition, my instructions on what to click on in the control panel to view the log may be slightly different for you, because I am running XAMPP on a Linux distribution based on Ubuntu (Feren OS).
Stealthdroid
source share