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
Share on other sites

I don't know what logs to check and it doesn't really matter to me what caused it.

 

I just want to make sure that if it happens again it will restart itself.

 

Please tell me how I can do this..

Link to comment
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..

Link to comment
Share on other sites

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 :(

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest prozente

If it is installed as a service then you can tell it to restart on failure.

 

Control Panel > Admin Tools > Services > Properties of the service > Recovery tab

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.