Mysql DBA Advanced Operations Learning Note-mysql Multiple installation methods for the database

Source: Internet
Author: User
Tags dba

3.1 MySQL Database installation

3.1.1 yum/rpm mode installation

Note: The yum/rpm way to install MySQL is suitable for all MySQL software PRODUCT families.

(1) RPM package installation MySQL
We have to install the Mysql-server and mysql.client packages, the RPM installation is very simple here will not say.

(2) Yum mode install MySQL
The Yum installation is simple, as long as you execute the Yum install Mysql-server–y.
Large portal to the source code according to the needs of enterprises to make RPM, set up Yum Warehouse, yum install xxx-y.

3.1.2 Install MySQL using CMake method

Due to the particularity of the mysql5.5.xx-5.6.xx product line, the compiling method is also different from the early-riser product installation method, which is compiled and installed in CMake or Gmake way.

3.1.3 uses binary mode to install MySQL without compiling.

Using binary method to install MySQL without compiling, this method and YUM/RPM package installation method is similar, suitable for all kinds of MySQL product line, do not need to complex compilation settings and compile time wait, directly unzip the downloaded package, initialize to complete the installation of MySQL start.

3.1.4 How to correctly choose the installation method of MySQL

Binary installation is simple and convenient, suitable for 5.0-5.1 and 5.5-5.6 series, is a lot of professional DBA choice, ordinary Linux operation and maintenance personnel to use the way of compiling, 5.0-5.1 series is the conventional way of compiling, 5.5-5.6 or more series is cmake compile the way. Therefore, mysql5.5 and above, the installation of a small number of machines, recommended CMake compiling method, which is the choice of most operations personnel. If you have a large quantity, you can use binary to install it. is no problem.

Mysql DBA Advanced Operations Learning Note-mysql Multiple installation methods for the database

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.