MySQL 5.6 binary installation

Source: Internet
Author: User

1. Enter user home directory to create Tools folder

1 # CD #mkdir Tools

2. Download MySQL5.6 binary Package

1 wget http://cdn.mysql.com//archives/mysql-5.6/mysql-5.6.12-linux-glibc2.5-x86_64.tar.gz

3. Adding MySQL users and user groups

1 # groupadd MYSQL2 # useradd-g MySQL MySQL

4. Unzip the binary installation package

1 # tar zxvf  mysql-5.6.12-linux-glibc2.5-x86_64.tar.gz

5. Create/application/data and/application/mysql folders

1 # Mkdir/application/data

6. Rename the extracted mysql-5.6.12-linux-glibc2.5-x86_64 to MySQL

1 # MV Mysql-5.6.12-linux-glibc2.5-x86_64/application/mysql

7. Modify the MySQL folder user and user group for MySQL

1 # cd/application/mysql2 #chown-R mysql:mysql./

8, MySQL has been installed, the following to initialize the MySQL table, information table, etc.

1 # scripts/mysql_install_db--user=mysql--basedir=/application/mysql--datadir=/application/data

9. Set the configuration file for startup mysqld and MySQL

1 # cp/application/mysql/support-files/mysql.server/etc/init.d/mysqld2 # CP/APPLICATION/MYSQL/MY.CNF/ETC/MY.CNF

10. Modify the configuration file

1 # VIM/ETC/MY.CNF
Basedir =/application/mysql datadir =/application/dataport = 3306server_id = 1

11. Create a soft link

1 # ln-s/application/mysql/bin/mysql/usr/bin

12. Set MySQL to start

1 # chkconfig Mysqld on

MySQL 5.6 binary installation

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.