Mysql 5.6 Installation

Source: Internet
Author: User
Tags chmod crc32 checksum

has been used in the 5.1 version, because the new business needs 5.6, installed and made notes


MySQL5.6 some new features:

InnoDB can now limit the amount of memory consumed when a large number of tables are open (a third party already has patches)

InnoDB performance enhancement. such as split kernel Mutex;flush operation from the main thread separation; multiple perge threads; large memory optimization, etc.

InnoDB deadlock information can be logged to the error log for easy analysis

MySQL5.6 supports time-lapse replication, allowing the slave to control an interval between the master and primary to facilitate data recovery in special cases.

Table Partitioning Enhancements

MySQL row-level replication is enhanced to reduce resource overhead such as disk, memory, and network (only fields that determine Row records can be recorded)

Binlog Implementation Crash-safe

Replication events with CRC32 checksum for enhanced Master/slave replication data consistency

New Log_bin_basename (previously variables there is no Binlog location information, the database monitoring is not convenient)


See: http://dev.mysql.com/doc/refman/5.6/en/mysql-nutshell.html

[[email protected] tools]# tar xvf mysql-5.6.19.tar.gz[[email protected]  Tools]# cd mysql-5.6.19[[email protected] mysql-5.6.19]# groupadd mysql[[email  protected] mysql-5.6.19]# useradd mysql -g mysql -m -s /sbin/ Nologin[[email protected] mysql-5.6.19]# cmake -dcmake_install_prefix=/usr/local/mysql  \  #安装路径-dmysql_datadir=/usr/local/mysql/data \ #数据文件存放位置-dsysconfdir=/etc  \# MY.CNF Path-dwith_myisam_storage_engine=1 \ #支持MyIASM引擎-dwith_innobase_storage_engine=1 \# Support InnoDB engine-dwith_memory_storage_engine=1  \ #支持Memory引擎-dwith_readline=1 \ #快捷键功能-dmysql_tcp_port =3306 \ #端口-denabled_local_infile=1 \ #允许从本地导入数据-dwith_partition_storage_engine=1 \# Install the support database partition-dextra_charsets=all \ #安装所有的字符集-ddefault_charset=utf8 \ #默认字符-ddefault_collation=utf8_ General_ci[[email protected] mysql-5.6.19]# make && make install[[email protected] mysql-5.6.19]# cd /usr/local/ mysql/[[email protected] mysql]# chown -r mysql:mysql . [[email protected] mysql]# scripts/mysql_install_db --user=mysql[[email protected]  mysql]# chown -r root:mysql . [[email protected] mysql]# chown  -R mysql:mysql ./data[[email protected] mysql]# chmod -R ug+rwx   . [[email protected] mysql]# cp support-files/my-default.cnf /etc/my.cnf[[ Email protected] mysql]# bin/mysqld_safe --user=mysql &[[email protected]  mysql]# cp support-files/mysql.server /etc/init.d/mysql[[email protected] mysql ]# chmod 755 /etc/init.d/mysql [[email protected] mysql]# echo  "Export  path=/usr/local/mysql/bin: $PATH " ≫> /etc/profile[[email protected] mysql]# source /etc/profile 


Mysql 5.6 Installation

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.