mysql 5.6.34 二進位

來源:互聯網
上載者:User

標籤:command   packet   error   character   har   amp   sort   max   bsp   

安裝方法

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 二進位

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.