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