Linux/centos source code Compilation installation Mysql5.6

Source: Internet
Author: User
Tags centos

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

Related Article

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.