How Windows restarts MySQL starts-> run->cmd
Stop: net stop MySQL
Start: net start MySQL
Prerequisite MySQL has been installed as Windows service
Wind Method Two
Start-run-input: services.msc-point OK-find mysql-on top right-reboot. That's fine.
In Linux
RedHat Linux (Fedora core/cent OS)
1. Start:/etc/init.d/mysqld start
2. Stop:/etc/init.d/mysqld stop
3. Restart:/etc/init.d/mysqld restart
Debian/ubuntu Linux
1. Start:/etc/init.d/mysql start
2. Stop:/etc/init.d/mysql stop
3. Restart:/etc/init.d/mysql restart
Windows
1. Click "Start"-> "Run" (shortcut key Win+r)
2. Start: Enter net stop MySQL
3. Stop: Enter net start MySQL
Tips
Redhat Linux also supports the service command,
Start: # service Mysqld Start
STOP: # service mysqld Stop
Restart: # service mysqld Restart
Windows cannot be restarted directly (restart) and can only be stopped before starting. ......
Recommended security Restart Method
$mysql _dir/bin/mysqladmin-u root-p shutdown
$mysql _dir/bin/mysqld_safe &
Mysqladmin and Mysqld_safe are located in the MySQL installation directory in the bin directory