CentOS7.2 installing MySQL 5.6.32 on a virtual machine

Source: Internet
Author: User
Tags odbc

1. MySQL 5.6.32 64-bit installation package download

Download the MySQL 5.6.32 64-bit installation package download in the official website http://dev.mysql.com/downloads/mysql/5.6.html#:

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/M00/86/95/ Wkiol1fewd6xpybjaabrxmhches013.png "" 669 "height=" 371 "/>

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

2. Pass the download file 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-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/M01/86/95/ Wkiol1fewd-qqdm3aafpio9orqw062.png "" 913 "height=" 705 "/>

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.6.32 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.