title: MySQL Power Outage Affecting MySQL Server - Shuts Down On Its Own
body: <p>I am new to dealing with mysql settings and admin type issues.  About 4-5 hours ago, I had two power outages within 30 minutes of eachother.  As a result, my computer shutdown both times, while in the middle of what I can only assume was a around 20-30 commands on mysql at the time.  After the first, mysql was unaffected.  But after the second, something happened.  MySQL Server cannot remain open for more than a few seconds at a time (before the outage, this was not a problem).  <strong>I am running MySQL Server 5.1.</strong></p>
  
  <p>I can manually start MySQL server using the admin command line (I am running this on Windows): net start mysql.  I get a message saying "The MySQL service was started successfully".  Then I run a command or (max) two, and then again everything stops working with a 2013 "Lost connection to MYSQL server during query".  Then I have to do restart the MySQL Server all over again.</p>
  
  <p>I have some important data in the database which I cannot reach because the connection times out before I can get it out.  Is there a way I can fix this connection problem easily?  I know my data is in there, because I have gotten a fair amount of it out.</p>
  
  <p>Any help would be appreciated.  Please let me know what other information you might need, and how I can get it.  I have been trying to find the error log for mysql, and have not found it yet.  </p>
  
  <p>And, yes, if I get through this, and even if I dont, I will make sure to create a system to update the data on a regular basis so these types of failures aren't so catastrophic in the future.</p>
  
  <p>Thanks in advance</p>