MySQL database startup and Shutdown

Source: Internet
Author: User

MySQL database startup and Shutdown

MySQL database server usually refers to mysqld, while command line mysql is a mysql client program. These two concepts are often confusing. Generally, the mysql server is started to start the mysqld process. After mysqld is started, you can connect to the mysql server through mysql. This article describes how to start a mysql server and how to disable it.

-------------------------------------- Split line --------------------------------------

Install MySQL in Ubuntu 14.04

MySQL authoritative guide (original book version 2nd) Clear Chinese scan PDF

Ubuntu 14.04 LTS install LNMP Nginx \ PHP5 (PHP-FPM) \ MySQL

Build a MySQL Master/Slave server in Ubuntu 14.04

Build a highly available distributed MySQL cluster using Ubuntu 12.04 LTS

Install MySQL5.6 and Python-MySQLdb in the source code of Ubuntu 12.04

MySQL-5.5.38 universal binary Installation

-------------------------------------- Split line --------------------------------------

1. Start directly with mysqld
Mysqld is the mysql server. You can call this command to directly start the mysql server.
Mysqld reads [mysqld] and [server] consumer group content from the configuration file, or you can directly follow the parameter through the command line.
The order in which the mysqld server reads configuration files. If multiple configuration files exist and the same parameter has multiple values, the last read prevails.
Command line parameters have the highest priority

# Current mysql server running environment
[Root @ rhel64a ~] # Cat/etc/issue
Red Hat Enterprise Linux Server release 6.4 (Santiago)

# View the default mysqld startup options
[Root @ rhel64a ~] # Mysqld -- print-defaults
Mysqld wowould have been started with the following arguments:
-- Socket =/tmp/mysql3306.sock -- port = 3306 -- pid-file =/var/lib/mysql/my3306.pid -- user = mysql -- server-id = 3306 -- federated
[Root @ rhel64a ~] # Ps-ef | grep mysql
Root 2963 2840 0 00:00:00 pts/0 grep mysql

# Author: Leshami
# Blog:

  • 1
  • 2
  • Next Page

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.