One of the greatest tricks for starting and disabling MySQL

Source: Internet
Author: User

This article describes how to start and stop MySQL. We all know that MySQL is often started and closed in practical applications, therefore, optimization is also highly concerned. The following describes the specific solution and hopes it will be helpful in your future study.

A: In linux: for example, My MySQL is installed in/usr/local/MySQL by source code.

Automatic: copy/usr/local/MySQL/share/MySQL. server to/etc/rc. d/init. d/, and

Chkconfig -- add MySQL. server to start the MySQL service after it is started.

Manual: Run/usr/local/MySQL/bin/MySQLd_safe -- user = MySQL as root

Windows:

Automatic:

Use cmd to go to the bin folder in the MySQL installation path and run: MySQLd-nt -- install

Manual: directly go to the bin folder of the MySQL installation path and execute net start MySQL.

If you do not want MySQL to start the service when the computer is started, execute: MySQLd-nt -- remove

You can also delete the corresponding service in HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services and restart the computer.

Close MySQL: MySQLadmin-uroot-p shutdown

Start MySQL:

 
 
  1. MySQLd-nt --install  
  2. net start MySQL 

Q: How do I log on to MySQL?

A: MySQL-uroot-p. Press enter, enter the password, and then press Enter. If you have not modified the password, the default password is null.

Q: How can MySQL be converted into a graphical database? Is there any built-in graphical tool?

A: There are many, such as MySQL_center, SQLyog, phpMyAdmin, MySQL Query Browser, and MySQL Administrator,

MySQL_centerd on this site: http://bbs.MySQL.cn/thread-517-1-1.html

SQLyog searches the Internet. Many SQLyog407 versions are good.

I will not provide them one by one. I will search and download them online.

The above content is an introduction to MySQL startup and shutdown. I hope you will have some gains.

The above content describes how to start and stop MySQL. I hope it will help you in this regard.

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.