MySQL Server - Stop or Restart

Use the STA command to stop or restart the MySQL server. You may need to do this during database management activities.

Stop the MySQL Server

Stop the MySQL database server when performing database management activities in which the MySQL server is running, but the rest of the STA application is not.

  1. IMPORTANT: Do not stop the MySQL server if the rest of the STA application is running.

  2. Open a terminal session on the STA server, and log in as the Oracle user.

  3. Stop the MySQL server:

    $ STA stop mysql
    
  4. Verify the server is not running:

    $ STA status mysql
    

    You should see:
    mysql is shutdown

Restart the MySQL Server

Restart the MySQL database server when performing database management activities in which you must shut down the STA application and then restart just the MySQL server.

  1. Open a terminal session on the STA server, and log in as the Oracle user.

  2. Start the MySQL service:

    $ STA start mysql
    
  3. Verify the server is running:

    $ STA status mysql
    

    You should see:
    mysql is running