Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2012
    Posts
    2

    Unanswered: Procedure to restart a server with a running mysql-db

    Hi,

    I was wondering if you need to stop mysqld before you can safely shut down or restart your (linux / debian) server or whether this is handled by the restart / shut down procedure of the operating system?

    Thanks for your answers.

  2. #2
    Join Date
    Mar 2004
    Posts
    480
    The shutdown/restart of your OS would kill all running processes.

  3. #3
    Join Date
    Aug 2012
    Posts
    2
    Thanks for your answer, guelphdad. I know that the shutdown / restart command would kill the mysqld process. I'm just wondering if this is a "safe" thing to do in matters of data consistency. I had to restart a server and ended up with a damaged table after the restart. That's why I'm asking.

  4. #4
    Join Date
    Oct 2009
    Location
    221B Baker St.
    Posts
    486
    For a very long time, IBM has issued the following caution:
    "The results may be unpredictable."
    This is true for any sudden interruption of service - IBM or not.

    You should gracefully shut down "things" that are running, then re-cycle the server.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •