In linux, the correct method of restarting MySQL is bitsCN.com, which modifies my. cnf. you need to restart the MySQL service. for the correct method of restarting MYSQL, see the following article.
Because Mysql is installed from the source code package, there is no common servcie mysqld restart script in the system.
You have to manually restart
Someone suggested Killall mysql. This brutal method is actually not feasible. if forced termination causes table damage, the loss will be huge.
Secure restart method is recommended here
$ Mysql_dir/bin/mysqladmin-u root-p shutdown
$ Mysql_dir/bin/safe_mysqld &
Mysqladmin and mysqld_safe are located in the bin directory of the Mysql installation directory, which is easy to find.
Restart MySQL in windows
For users who have not installed the mysql graphic management terminal, start and stop the mysql service:
... /... /Bin> net stop mysql
... /... /Bin> net start mysql
How to start/stop/restart MySQL
Starting, stopping, and restarting MySQL is a must-have operation for Every webmaster with an independent host. The following describes the operation methods:
I. startup mode
1. start with service: service mysqld start
2. use the mysqld script to start:/etc/inint. d/mysqld start
3. start with safe_mysqld: safe_mysqld &
II. stop
1. start with service: service mysqld stop
2. use the mysqld script to start:/etc/inint. d/mysqld stop
3. mysqladmin shutdown
3. restart
1. start with service: service mysqld restart
2. use the mysqld script to start:/etc/inint. d/mysqld restart
BitsCN.com