This type of error seen when database (MySQL or MariaDB) gone through fatal error. There are various causes too, apart from visible errors. Anyway, solution is simple. You have to delete one line from my.ini
- Open XAMPP control panel
- Click MySQL > Config > my.ini
- Locate & delete below line
innodb_force_recovery = 4
- Restart MySQL module from XAMPP panel via simply pressing Stop & Start button.
If still problem persist, verify that the user has sufficient write permission to database. Alternatively, you can replace 4 in the code shown in step No 3 with 1 or 2 or 3.