MySQL Installation
Software version MySQL-5.6.32 (the package included in the article plus the bottom of the free access)
Upload mysql-5.6.32-linux-glibc2.5-x86_64.tar.gz to App server directory:/USR/LOCAL/SRC (package see attachment)
#cd/USR/LOCAL/SRC
#tar-ZXVF mysql-5.6.32-linux-glibc2.5-x86_64.tar.gz
#mv Mysql-5.6.32-linux-glibc2.5-x86_64/usr/local/mysql
#groupadd MySQL
#useradd-G MySQL MySQL
#cd/usr/local/mysql
#mkdir/usr/local/mysql/data/tmp
#chown-R Mysql:mysql/usr/local/mysql/data
#./scripts/mysql_install_db--user=mysql--datadir=/usr/local/mysql/data--basedir=/usr/local/mysql
#vim/etc/my.cnf//Copy the following:
[Mysqld]
Datadir=/usr/local/mysql/data
Socket=/usr/local/mysql/data/mysql.sock
Character_set_server=gbk
User=mysql
Default-storage-engine=innodb
Tmpdir=/usr/local/mysql/data/tmp
Symbolic-links=0
Innodb_buffer_pool_size = 1G
Skip-name-resolve
Event_scheduler = 1
Port = 3306
server_id = 1
wait_timeout=2880000
Interactive_timeout = 2880000
Max_allowed_packet = 512M
Join_buffer_size = 128M
Sort_buffer_size = 2M
Read_rnd_buffer_size = 2M
Lower_case_table_names = 1
Sql_mode=no_engine_substitution,strict_trans_tables
[Mysqldump]
Quick
Max_allowed_packet = 512M
[Client]
Default-character-set=gbk
Socket=/usr/local/mysql/data/mysql.sock
#cp Support-files/mysql.server/etc/init.d/mysqld
#chmod 755/etc/init.d/mysqld
#vim/etc/init.d/mysqld//file start by adding the following:
Basedir=/usr/local/mysql
Datadir=/usr/local/mysql/data
#chkconfig--add mysqld//Add MySQL to system service
#chkconfig mysqld on//set MySQL boot from
#service mysqld start//start MySQL
If you are interested in this, please scan the QR code below for free for more details
Linux/centos source code Compilation installation Mysql5.6