The correct method for restarting MySQL

Source: Internet
Author: User


The correct method for restarting MySQL has changed my. cnf, the MySQL service needs to be restarted. because Mysql is installed from the source code package, there is no common servcie mysqld restart script in the system, so we have to manually restart Killall mysql. This brutal method is actually not feasible. If forced termination causes table damage, the loss will be huge. We recommend that you use the secure Restart Method $ mysql_dir/bin/mysqladmin-u root-p shutdown $ mysql_dir/bin/safe_mysqld & mysqladmin and mysqld_safe in the bin directory of the Mysql installation directory, it is easy to find. Restart the MySQL service in windows. For users without the mysql graphic management end, start and stop the mysql service :... \... \ Bin> net stop mysql... \... \ Bin> net start mysql how to start/stop/restart MySQL -www.2cto.com-start, stop, and restart MySQL is an operation that every webmaster with an independent host must hold, the following is a brief introduction of the Operation Method: 1. startup method 1. start with service: service mysqld start 2. start with mysqld Script:/etc/inint. d/mysqld start 3. start with safe_mysqld: safe_mysqld & 2. stop 1. start with service: service mysqld stop 2. start with mysqld Script:/etc/inint. d/mysqld stop 3, mysqladmin shutdown -www.2cto.com-3, restart 1, start with service: service mysqld restart 2, start with mysqld Script:/etc/inint. d/mysqld restart author lcffufly

Related Article

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.