Tar zxvf mysql-5.6. tar.gz.
CD mysql-5.6. One
CMake. -dcmake_install_prefix=/home/mysql/-dmysql_datadir=/home/mysql/data/-dmysql_unix_addr=/tmp/mysqld.sock-dwith_ innobase_storage_engine=1 -denabled_local_infile=1 -dmysql_tcp_port=3306 -dextra_ Charsets=all-ddefault_charset=utf8-ddefault_collation=utf8_general_ci-dmysql_unix_addr=/tmp/mysql.sock-dmysql_ user=mysql-dwith_debug=0
Make
Make install
CP support-files/my-medium.cnf/etc/my.cnf--------Note:, no this file from Wuxi 152 copy of the past one, in fact, as long as the inside of the initialization of MySQL is/tmp/mysql.sock can
CP Support-files/mysql.server/etc/init.d/mysqld
1. Groupadd MySQL
2. useradd-g MySQL MySQL
3./mysql_install_db--user=mysql--basedir=/home/mysql/--datadir=/home/mysql/data "Note that the last directory will be the same as the previous compilation or/etc/ My.conf "
chmod 777/mysql_install_db [without permission, go to the/scripts/mysql_install_db directory to modify permissions]
/etc/init.d/mysqld start
Open, and then the password is empty
Linux install MySQL 5.6.11