How to start / stop the MySQL service

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blossam
    New Member
    • May 2007
    • 29

    How to start / stop the MySQL service

    hi,
    i want to shutdown mysql service n after that i want to start it
    i m using
    mysqladmin -u root shutdown command to stop service
    now i want to start it using command do u know which command i can use to start mysql after shutdown it
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by blossam
    hi,
    i want to shutdown mysql service n after that i want to start it
    i m using
    mysqladmin -u root shutdown command to stop service
    now i want to start it using command do u know which command i can use to start mysql after shutdown it
    Check out the manual: 5.2.2. Command Options.

    Also, I notice that you are on Windows.
    In the Start menu, under MySQL go to the MySQL Server x.x | MySQL Server Instance Configuration Wizard. There you will find an option to start the service when Windows boots up.

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Hi.

      If you are using Windows, you can start and stop the MySQL service just like any other service.
      Open a cmd window and type:
      Code:
      net stop MySQL
      net start MySQL
      Where MySQL is the name of the MySQL service.

      On Linux you can do something like this:
      Code:
      # /etc/init.d/mysqld start
      # /etc/init.d/mysqld stop
      # /etc/init.d/mysqld restart
      Fedora / Red Hat also support this:
      Code:
      # service mysqld start
      # service mysqld stop
      # service mysqld restart
      P.s. I edited the title to make it a little clearer.
      Last edited by Atli; Sep 7 '07, 05:13 PM. Reason: Added Linux info

      Comment

      • blossam
        New Member
        • May 2007
        • 29

        #4
        Originally posted by Atli
        Hi.

        If you are using Windows, you can start and stop the MySQL service just like any other service.
        Open a cmd window and type:
        Code:
        net stop MySQL
        net start MySQL
        Where MySQL is the name of the MySQL service.

        On Linux you can do something like this:
        Code:
        # /etc/init.d/mysqld start
        # /etc/init.d/mysqld stop
        # /etc/init.d/mysqld restart
        Fedora / Red Hat also support this:
        Code:
        # service mysqld start
        # service mysqld stop
        # service mysqld restart
        P.s. I edited the title to make it a little clearer.
        thanks 4 help me. i really need this

        Comment

        • Kiraa
          New Member
          • Nov 2014
          • 1

          #5
          yes really Thx it helps and it's Simple .... thx

          Comment

          Working...