From 51407795a6268296c5f7a796691789ada300a36d Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Fri, 28 Feb 2020 01:47:42 +0800 Subject: [PATCH] stop.sh --- my.cnf | 3 ++- stop.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 stop.sh diff --git a/my.cnf b/my.cnf index c08286f..561a7ad 100644 --- a/my.cnf +++ b/my.cnf @@ -1,5 +1,6 @@ [mysql] +user=root port=2206 socket=/tmp/myrocks.sock @@ -29,7 +30,7 @@ rocksdb_max_open_files=-1 rocksdb_max_background_jobs=8 rocksdb_max_total_wal_size=4G rocksdb_block_size=16384 -rocksdb_block_cache_size=8G +rocksdb_block_cache_size=4G rocksdb_table_cache_numshardbits=6 # rate limiter diff --git a/stop.sh b/stop.sh new file mode 100644 index 0000000..c027247 --- /dev/null +++ b/stop.sh @@ -0,0 +1 @@ +mysqladmin --socket=/tmp/myrocks.sock -p"*" -uroot shutdown