@jawedrs Sorry for the late response. I downloaded an earlier version of my xampp and used it and it was working fine. Then it happened again without any reason, mysql wasn’t able to connect.
So I copied my backup and pasted it in the data and then mysql was connected but when I went into phpmyadmin the database tables were corruped “Table doesn’t exist in engine”. I tried repairing and for each one of those cases of my tables this is what it was written “wp_actionscheduler_actions’ doesn’t exist in engine Status Operation failed“. I am not sure what is the reason this happens out of nowhere. I might try test with a fresh installation like you said.