cat > /etc/my.cnf <<EOF [mysql] port=3306 socket=/tmp/mysql.sock [mysqld] bind-address=0.0.0.0 port=3306 user=mysql basedir=/usr/local/mysql datadir=/data/mysql socket=/tmp/mysql.sock back_log=500 init_connect='SET NAMES utf8' default-storage-engine=INNODB character-set-server=utf8 collation-server=utf8_general_ci innodb_file_format=Barracuda innodb_io_capacity=200 innodb_io_capacity_max=4000 innodb_open_files=500 key_buffer_size=260000000 lock_wait_timeout=3600 log_bin_trust_function_creators=1 log_output=FILE long_query_time=5 max_allowed_packet=1073741824 max_heap_table_size=2147483648 query_cache_limit=10000000 query_cache_min_res_unit=2048 query_cache_size=300000000 query_cache_type=1 read_buffer_size=4194304 read_rnd_buffer_size=16777216 skip_name_resolve=0 slave_net_timeout=10 slow_query_log=1 sort_buffer_size=16777216 table_definition_cache=912 table_open_cache=1024 tmp_table_size=2147483648 wait_timeout=3600 EOF
|