CentOS7.2 installing MySQL 5.7.14 on a virtual machine

Source: Internet
Author: User
Tags odbc

1. MySQL 5.6.32 64-bit installation package download

Download the MySQL 5.7.14 64-bit installation package in the official website http://dev.mysql.com/downloads/mysql/using wget or Thunderbolt:

MySQL is divided into development version and stable version (GA), the development version has the latest features, but not stable, nor completely tested, there may be serious bugs, and stable version is a long time testing, eliminate the known bugs, its stability and security are guaranteed.

For a MySQL version number such as: MYSQL-5.6.1-M1, what does this version number mean?
1. Explanation for 5.6.1: The first number 5 represents the file format, the second number 6 represents the release level, and the third number 1 represents the version number. When the update amplitude is small, the last number increases, the second number increases when a major feature update occurs, and the first number increases when the file format changes.
2. For M1 explanation: This is used to indicate the stability level of this MySQL version, if there is no suffix, then this version is a stable version (GA), if the suffix is mn (for example, M1,M2) format, indicating that this version has been added to some thoroughly tested new features, It can be thought that this is a trial production of the mold; if the suffix is RC, indicating that this is a candidate version, has modified the known important bug, but did not pass long enough time to confirm that all bugs have been fixed.

650) this.width=650; "title=" image "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M02/86/A9/ Wkiom1fgrmtqgifnaadipurcl2u743.png "" 946 "height=" 502 "/>

650) this.width=650; "title=" image "style=" border-right-0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M00/86/95/ Wkiol1fewd6xpybjaabrxmhches013.png "width=" 669 "height=" 371 "/>

(Http://cdn.mysql.com//Downloads/MySQL-5.6/MySQL-5.6.32-1.linux_glibc2.5.x86_64.rpm-bundle.tar

Http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.14-linux-glibc2.5-x86_64.tar)

2, download the source version.

Use the command:

Cd/etc/local/src

wget Http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.14-linux-glibc2.5-x86_64.tar

Files downloaded with Thunderbolt can be passed through Securefx to the/usr/local/src/directory (the IP of the virtual host CentOS7.2 is: 192.168.1.11)

650) this.width=650; "title=" image "style=" border-right-0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" http://s3.51cto.com/wyfs02/M01/86/95/ Wkiol1fewd-qqdm3aafpio9orqw062.png "width=" 913 "height=" 705 "/>

Verify that the downloaded file is complete

[Email protected] src]# md5sum mysql-boost-5.7.14.tar.gz
f90464874ee635ff63c436d1b64fe311 mysql-boost-5.7.14.tar.gz
[Email protected] src]# md5sum Mysql-5.7.14-linux-glibc2.5-x86_64.tar
1fdd5e78d64aa60b0425eaa0774dd212 Mysql-5.7.14-linux-glibc2.5-x86_64.tar

3, unzip the file.

cd/usr/local/src/

[Email protected] src]# tar xvf mysql-5.6.32-1.linux_glibc2.5.x86_64.rpm-bundle.tar
mysql-shared-compat-5.6.32-1.linux_glibc2.5.x86_64.rpm
mysql-client-5.6.32-1.linux_glibc2.5.x86_64.rpm
mysql-shared-5.6.32-1.linux_glibc2.5.x86_64.rpm
mysql-server-5.6.32-1.linux_glibc2.5.x86_64.rpm
mysql-devel-5.6.32-1.linux_glibc2.5.x86_64.rpm
mysql-test-5.6.32-1.linux_glibc2.5.x86_64.rpm
mysql-embedded-5.6.32-1.linux_glibc2.5.x86_64.rpm

4. Check if the system has MySQL installed, using the command:

[Email protected] src]# Rpm-qa | grep MySQL
Mysql-connector-odbc-5.2.5-6.el7.x86_64

To uninstall the installed MySQL, uninstall the MySQL command as follows:

[Email protected] src]# rpm-e--nodeps mysql-connector-odbc-5.2.5-6.el7.x86_64

Remove all files under the/var/lib/mysql folder cleanly.

5. Install the server and client using the following command:

[Email protected] src]# RPM-IVH mysql-server-5.6.32-1.linux_glibc2.5.x86_64.rpm

[Email protected] src]# RPM-IVH mysql-client-5.6.32-1.linux_glibc2.5.x86_64.rpm

6. Use the following command to view the current MySQL status:

CentOS7.2 installing MySQL 5.7.14 on a virtual machine

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.