Commit c9a29e7c authored by Leigh Stoller's avatar Leigh Stoller

Changes for mysql 5.7 startup.

parent 59f2b412
......@@ -26,10 +26,18 @@ if [ $major -eq 5 ]; then
# XXX awkward: no -O, a couple of name changes
opts="--default-storage-engine=MyISAM --long_query_time=2"
opts="$opts --max_connections=300 --key_buffer=32M"
opts="$opts --table_open_cache=256 --sort_buffer=4M"
opts="$opts --max_connections=300"
opts="$opts --table_open_cache=256"
opts="$opts --read_buffer_size=1M"
fi
# so we can start using innodb tables, maybe with compression.
if [ $minor -gt 5 ]; then
opts="$opts --innodb_file_per_table=1 --innodb_file_format=Barracuda"
# Backwards compatibility.
opts="$opts --lower_case_table_names=0 --log_output=file"
# Strict mode is coming, but we can't handle it.
opts="$opts --sql_mode=ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
fi
else
safeprog=/usr/local/bin/safe_mysqld
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment