Three installation methods for MySQL

Source: Internet
Author: User
There are three common ways to install MySQL: rpm package form common binary form source code compilation

There are three common ways to install MySQL: rpm package form common binary form source code compilation

There are three common ways to install MySQL:

1. rpm package format

(1) provided by the operating system publisher

(2) officially provided by MySQL (version updates, fixed more common bugs)

Introduction to the rpm package type in MySQL:

Installation Method: First, you can download the rpm package of the corresponding version from the installation disc or to the mysql website as follows:
  • MySQL-server-community-5.5.28-1.rhel5.i386.rpm
  • MySQL-client-community-5.5.28-1.rhel5.i386.rpm
  • Then we can use the rpm command for installation:
  • Rpm-ivh MySQL-server-community-5.5.28-1.rhel5.i386.rpm
  • Rpm-ivh MySQL-client-community-5.5.28-1.rhel5.i386.rpm
  • Add:
  • -H use the symbol # display the installation progress
  • -V: report operations in each step
  • 2. General Binary Package (1) create a user to run the process safely: (3) provide the main configuration file for mysql:
  • # Cd/usr/local/mysql
  • # Cp support-files/my-large.cnf/etc/my. cnf
  • (4) modify the configuration file: (5) provide the sysv service script for mysql:
  • # Cd/usr/local/mysql
  • # Cp support-files/mysql. server/etc/rc. d/init. d/mysqld
  • (6) Add to service list:
  • # Chkconfig -- add mysqld
  • # Chkconfig mysqld on
  • (7) Then you can start the service test. # Service mysqld start

    Recommended reading:

    How to install MySQL in Linux

    Instructions on installing and configuring MySQL on CentOS

    MySQL installation and basic management in Linux

    Install and upgrade MySQL in Linux under VMware

    To continue reading the highlights of this article, please refer to page 2nd:

    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.