mysql 5.6.34 二进制

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 5.6.34 二进制相关的知识,希望对你有一定的参考价值。

安装方法

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 文件

[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

 

 

 

 

如果没有加红色选项  会报错

FATAL ERROR: Could not find ./bin/my_print_defaults














以上是关于mysql 5.6.34 二进制的主要内容,如果未能解决你的问题,请参考以下文章

Centos7.1部署mysql-5.6.34(笔记)

centos7 二进制安装包安装 mysql5.6

如何在centos7环境下二进制安装包安装mysql5.6

MySQL二进制分发安装

练习二进制分发安装mysql

windows7下安装MySQL-5.6.34