1. Download the source package wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.11.tar.gz
2. Installation Kit Yum install-y cmake gcc gcc-c++ ncurses-devel ncurses
3. Unzip the source package TAR-ZXVF mysql-8.0.11.tar.gz
4. Renaming the source package directory MV mysql-8.0.11 Mysql8
5. Compiling the installation
CMake. -DCMAKE_INSTALL_PREFIX=/USR/LOCAL/MYSQL8 \ CMake precompilation
-dmysql_unix_addr=/tmp/mysql.socket\ MySQL Socket communication file location
-dmysql_datadir=/data/mysql \
-DSYSCONFDIR=/ETC \
-dmysql_user=mysql \
-dmysql_tcp_port=3306 \
-dwith_xtradb_storage_engine=1 \
-dwith_innobase_storage_engine=1 \
-dwith_partition_storage_engine=1 \
-dwith_blackhole_storage_engine=1 \
-dwith_myisam_storage_engine=1 \
-dwith_readline=1 \
-denabled_local_infile=1\
-dwith_extra_charsets=1\
-ddefault_charset=utf8 \
-ddownload_boost=1
-dwith_boost=/boost/
-DDEFAULT_COLLATION=UTF8_GENERAL_CI \
-dextra_charsets=all\
-dwith_big_tables=1\
-dwith_debug=0
Source installation MySQL