The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Best way to BASH restar MySQL?

Discussion in 'General Discussion' started by Secmas, Jan 20, 2013.

  1. Secmas

    Secmas Well-Known Member

    Joined:
    Feb 18, 2005
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Hi,
    I have a BASH scritp that does an optimization and after that a backup of all the databases in the server and I wish to add a restart MySQL after the backup.

    Is safe to add a command line service mysql restart or do I have to stop and start mysql or is a better way to do this?

    Thanks for your inputs.

    Sergio
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,760
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. Secmas

    Secmas Well-Known Member

    Joined:
    Feb 18, 2005
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Thank you CpanelMichael, appreciated.

    Sergio
     
Loading...

Share This Page