MySQL 5.6.342 binary

Source: Internet
Author: User

Installation method

Http://dev.mysql.com/doc/refman/5.6/en/binary-installation.html

Shell>groupadd mysql
Shell>useradd -r -g mysql -s /bin/false mysql
Shell>cd /usr/local
Shell>tar zxvf /path/to/mysql-VERSION-OS.tar.gz
Shell>ln -s full-path-to-mysql-VERSION-OS mysql
Shell>cd mysql
Shell>chown -R mysql .
Shell>chgrp -R mysql .
Shell>scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql
Shell>chown -R root .
Shell>chown -R mysql data
Shell>bin/mysqld_safe --user=mysql &
# Next command is optional
Shell>cp support-files/mysql.server /etc/init.d/mysql.server

MY.CNF file

[Client]

Port = 3306

Default-character-set = UTF8

Socket =/tmp/mysql.sock

[Mysqld]

Character-set-server = UTF8

Collation-server = Utf8_general_ci

Port = 3306

Socket =/tmp/mysql.sock

Basedir =/usr/local/mysql

DataDir =/usr/local/mysql/data

Skip-external-locking key_buffer_size = 16M

Max_allowed_packet = 1M

Table_open_cache = 64

Sort_buffer_size = 512K

Net_buffer_length = 8K

Read_buffer_size = 256K

Read_rnd_buffer_size = 512K

Myisam_sort_buffer_size = 8M

Log-bin=mysql-bin binlog_format=mixed Server-id = 1

[Mysqldump] Quick Max_allowed_packet = 16M

[MySQL] No-auto-rehash

[Myisamchk] key_buffer_size = 20M Sort_buffer_size = 20M Read_buffer = 2M Write_buffer = 2M

[Mysqlhotcopy] Interactive-timeout

Error if no red option is added

FATAL error:could not find./bin/my_print_defaults

MySQL 5.6.342 binary

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.