How to restart MySQL in linux _ MySQL

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.