Restarting MySQL

Technical Articles

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

Restart MySQL following the steps below for your platform.

Linux
Type one of the following at the command prompt followed by pressing the Return key:
/etc/init.d/mysqld restart
service mysqld restart
service mysql restart
Windows
  1. Launch Command Prompt.

  2. Type both of the following commands, each followed by pressing the Return key:
    net stop MySQL80
    net start MySQL80
    
    Note:

    The service name MySQL80 may vary.

Mac
  1. Open System Preferences.

  2. Click on the MySQL preference pane.

  3. Click the button to stop and start MySQL.

Alternatively, for MySQL 5.7 or later, type both of the following commands, each followed by pressing the Return key:
sudo launchctl unload -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
sudo launchctl load -F /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist