CentOS 6.5 64 bit under Install Source installation MySQL 5.6.15

Source: Internet
Author: User

The system environment is CentOS 6.5 64-bit

First add 3306 ports inside the firewall:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/54/12/wKiom1R268HTLup6AAHmX55iVUk276.jpg "title=" QQ picture 20141127151904.png "alt=" Wkiom1r268htlup6aahmx55ivuk276.jpg "/>

Then Save: wq!

After saving, reboot the firewall.

Service Iptables Restart


The dependencies required to install the system

[Email protected] ~]# yum-y install gcc gcc-c++ gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* L ibtool-ltdl-devel* CMake Bison

The version I downloaded here is mysql-5.6.15.tar.gz


File location in/usr/local/src

The first decompression, the specific operation is as follows

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/54/0F/wKioL1R21LfBRsKOAAFcrQ-8qA0688.jpg "title=" Qq20141127153415.png "style=" Float:none; "alt=" wkiol1r21lfbrskoaafcrq-8qa0688.jpg "/>

Then review the installation and usage instructions:

Vim Install-source

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/54/10/wKiom1R21DTB7zY-AAHw5Mkw3Mk808.jpg "title=" Qq20141127153153.png "style=" Float:none; "alt=" wkiom1r21dtb7zy-aahw5mkw3mk808.jpg "/>

Follow the steps to:

1. Adding user groups

Groupadd MySQL

2. Add a user and join the MySQL user group

Useradd-r-G MySQL MySQL

3. Unzip the compressed file

Tar-zxvf/usr/local/src/mysql-5.6.15.tar.gz

4, do a soft link, unzip the good file link to/usr/local/here

Ln-s mysql-5.6.15 MySQL

5. Enter MySQL

CD MySQL

6. Set the owner's and owning group's recursive permissions

Chown-r MySQL.

Chgrp-r MySQL.

7. Initialize the installation database

scripts/mysql_install_db--user=mysql

8. Change the owner of the current folder and change the owner of the data to MySQL

Chown-r Root

Chown-r MySQL Data

9, test

Bin/mysqld_safe--user=mysql

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/54/12/wKiom1R26N7ArjntAADaPpKxfuo021.jpg "title=" QQ picture 20141127170245.jpg "alt=" wkiom1r26n7arjntaadappkxfuo021.jpg "/> See this step is successful

10, below to enter the next MySQL

The installation directory is Usr/local/mysql

Execute Command/usr/local/mysql/bin/mysql-uroot-p

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/54/10/wKioL1R26oijgvdVAAIwgl8dg2U678.jpg "title=" Qq20141127170718.png "alt=" Wkiol1r26oijgvdvaaiwgl8dg2u678.jpg "/>

Installation Complete

There is a shortage of places please heroes more guidance, thank you


CentOS 6.5 64 bit under Install Source installation MySQL 5.6.15

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.