Jump to content

[SOLVED] MySQL crash and restart


Azu

Recommended Posts

Hi I'm using MySQL on windoz and when I got up this morning the MySQL service had crashed and I had to go into the service manager and start it again manually.

 

Please tell me how I can make it so that it will automatically restart when it crashes! Whole website and server depend on the MySQL database =/

Link to comment
https://forums.phpfreaks.com/topic/46563-solved-mysql-crash-and-restart/
Share on other sites

I know that's why I just want to make it restart when it crashes please tell me how to do this okay?

I'm sure it's something very simple that I am missing.. :s

Surely it would be faster then finding the file that this error is logged in, shifting through all the logs in it to find the error, figuring out what it means, and fixing whatever the problem is, assuming it isn't just some random fluke in mysql's programming.

 

So please just tell me how to make it automatically restart..

I have no idea how to investigate it though. I just no that every once in a while the process just turns off. That is all I know.

 

I just want to either make it turn itself back on when this happens, or prevent this from happening, but I don't know how to sorry :(

I have no idea how to investigate it though. I just no that every once in a while the process just turns off. That is all I know.

 

I just want to either make it turn itself back on when this happens, or prevent this from happening, but I don't know how to sorry :(

 

Use a task scheduler.

Something like this:

http://www.iopus.com/guides/winscheduler.htm

 

check every 1 hour and see if the process is running. If not start it else quit.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.