A proper way to restart MySQL under Linux
1. mysql service mysqld restart installed via RPM package
2. mysql installed from the source package
Linux shutdown mysql Command
$mysql _dir/bin/mysqladmin-uroot-p shutdown
Linux commands to start MySQL
$mysql _dir/bin/mysqld_safe &
Where Mysql_dir is the MySQL installation directory, mysqladmin and Mysqld_safe are located in the bin directory of the MySQL installation directory and are easily found.
3, the above methods are invalid, can be forced by the command: "Killall MySQL" to shut down MySQL, but it is not recommended in this way, because this barbaric method will forcibly terminate the MySQL database service, it is possible to cause table corruption
Steps or methods:
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
The correct way to restart MySQL under Windows II
1. Click "Start", "Run" (shortcut key Win+r).
2. Start: Input net stop MySQL 3. Stop: input net start MySQL
Hint * Redhat Linux also supports service command, boot: # service mysqld start stop: # service mysqld Stop restart: # service mysqld Restart
* Windows can not be restarted directly (restart), can only stop, then start.
MySQL start, stop, restart method:
First, the starting mode
1. Start with service: Service mysqld start
2. Start with mysqld script:/etc/inint.d/mysqld start
3. Use Safe_mysqld to start:safe_mysqld&
Second, stop
1. Start with service: Service mysqld stop
Ubuntu Learning summary -12 Linux platform and Windows platform MySQL restart method