title: Error: MySQL shutdown unexpectedly. XAMPP, how to repair a corrupt table
body: <p>I have been researching this issue for 2 days now and all the questions and answers do not solve my problem.</p>
  <p>Found! in the mysql_error.log after running it several times:</p>
  <blockquote>
  <p>2020-01-06 16:34:11 0 [ERROR] mysqld.exe: Table '.\mysql\user' is
  marked as  crashed and last (automatic?) repair failed</p>
  <p>2020-01-06 16:34:11 0 [ERROR] Fatal error: Can't open and lock privilege  tables:
  Table '.\mysql\user' is marked as crashed and last (automatic?)
  repair failed</p>
  </blockquote>
  <p>So now I see the issue after numerous times trying to start MySQL and reviewing the log, this time I finally see the &quot;user&quot; table is corrupt.</p>
  <p>Can anyone advise how to repair this?</p>