This video will help you to solve your mysql stopped issue while using your local server ampps.
Magic Line: " innodb_force_recovery = 1 "
copy the above magic line of code and paste in your configuration file. check out the video properly, wrongly inserted code may create serious issues in your local server!