未验证 提交 3ba84414 编写于 作者: H hustjieke 提交者: GitHub

feat(scripts): change stonedb cnf (#117) (#120)

* feat(scripts): change stonedb.cnf to my.cnf (#117)
上级 841a8c86
# Example StoneDB config file (mysql server).
# In this file, you can use all long options that mysql supports.
# If you want to know which options a program supports, run the program
# with the "--help" option.
# The following options will be passed to all MySQL clients
[client]
#password = your_password
socket = /tmp/stonedb.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
basedir = /usr/local/stonedb
datadir = /usr/local/stonedb/data
log-error = stonedb.err
port=5029
# ignore directories created by stonedb
ignore-db-dir=BH_RSI_Repository
ignore-db-dir=cache
ignore-db-dir=stonedb_data
# suppress warning
explicit_defaults_for_timestamp = 1
log_output = FILE
character_set_server = utf8
collation_server = utf8_general_ci
init_connect='SET NAMES utf8'
lower_case_table_names=1
#general_log=1
#general_log_file=path-of-datadir/general_query.log
#slow_query_log=1
#slow_query_log_file=path-of-datadir/slow_query.log
socket = /tmp/stonedb.sock
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 500M
table_open_cache = 16
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 8M
net_buffer_length = 8K
thread_cache_size = 32
thread_stack = 512K
query_cache_size = 8M
query_cache_type=0
core-file
max_connections=30000
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (using the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
server-id=1
# log-bin=mysql-bin
performance_schema=OFF
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
local-infile=1
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[mysqlhotcopy]
interactive-timeout
[mysql-test]
host=local
user=root
database=dk
# suite-timeout=60
testcase-timeout=3600
[mysqld_safe]
core-file-size = unlimited
SET (INSTALL_ENGINE "/stonedb56") SET (INSTALL_ENGINE "/stonedb56")
SET (ENGINE_MYSQLDIR "${INSTALL_ENGINE}/install") SET (ENGINE_MYSQLDIR "${INSTALL_ENGINE}/install")
install(FILES stonedb.cnf install(FILES my.cnf
DESTINATION ${ENGINE_MYSQLDIR} COMPONENT storage-engine) DESTINATION ${ENGINE_MYSQLDIR} COMPONENT storage-engine)
install(PROGRAMS mysql_server install.sh reinstall.sh install(PROGRAMS mysql_server install.sh reinstall.sh
DESTINATION ${ENGINE_MYSQLDIR} COMPONENT storage-engine) DESTINATION ${ENGINE_MYSQLDIR} COMPONENT storage-engine)
...@@ -4,6 +4,6 @@ mkdir log ...@@ -4,6 +4,6 @@ mkdir log
mkdir tmp mkdir tmp
chown -R mysql:mysql * chown -R mysql:mysql *
sh -x ./scripts/mysql_install_db.sh --defaults-file=./stonedb.cnf --user=mysql --basedir=/stonedb/install --datadir=/stonedb/install/data sh -x ./scripts/mysql_install_db.sh --defaults-file=./my.cnf --user=mysql --basedir=/stonedb/install --datadir=/stonedb/install/data
chown -R mysql:mysql * chown -R mysql:mysql *
sh -x ./mysql_server start sh -x ./mysql_server start
...@@ -27,7 +27,7 @@ mkdir tmp ...@@ -27,7 +27,7 @@ mkdir tmp
echo "run mysql_install_db ..." echo "run mysql_install_db ..."
sleep 3 sleep 3
chown -R mysql:mysql * chown -R mysql:mysql *
./scripts/${mysql_install_db_script} --defaults-file=./stonedb.cnf --user=mysql --basedir=/stonedb56/install --datadir=/stonedb56/install/data ./scripts/${mysql_install_db_script} --defaults-file=./my.cnf --user=mysql --basedir=/stonedb56/install --datadir=/stonedb56/install/data
echo "start the instance..." echo "start the instance..."
sleep 3 sleep 3
......
...@@ -332,7 +332,7 @@ ELSE() ...@@ -332,7 +332,7 @@ ELSE()
# On Unix, most of the files end up in the bin directory # On Unix, most of the files end up in the bin directory
SET(mysql_config_COMPONENT COMPONENT Development) SET(mysql_config_COMPONENT COMPONENT Development)
SET(BIN_SCRIPTS SET(BIN_SCRIPTS
msql2mysql mysql2mysql
mysql_config mysql_config
mysql_fix_extensions mysql_fix_extensions
mysql_setpermission mysql_setpermission
......
...@@ -8,8 +8,9 @@ then ...@@ -8,8 +8,9 @@ then
mkdir ../build mkdir ../build
fi fi
#build_type=Debug build_type=Debug
build_type=RelWithDebInfo #build_type=RelWithDebInfo
#build_type=release
branch=`git rev-parse --abbrev-ref HEAD` branch=`git rev-parse --abbrev-ref HEAD`
cpu_arc=`uname -m` cpu_arc=`uname -m`
os_dist=`lsb_release -a | grep Distributor | tail -n 1 | awk '{print $3}'` os_dist=`lsb_release -a | grep Distributor | tail -n 1 | awk '{print $3}'`
...@@ -49,8 +50,8 @@ cmake ../../ \ ...@@ -49,8 +50,8 @@ cmake ../../ \
-DEXTRA_CHARSETS=all \ -DEXTRA_CHARSETS=all \
-DDEFAULT_CHARSET=utf8 \ -DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \ -DDEFAULT_COLLATION=utf8_general_ci \
-DDOWNLOAD_BOOST=1 \ #-DDOWNLOAD_BOOST=1 \
-DWITH_BOOST=/usr/local/boost/ \ #-DWITH_BOOST=/usr/local/boost/ \
2>&1 | tee -a ${build_log} 2>&1 | tee -a ${build_log}
# make # make
......
...@@ -71,7 +71,7 @@ RC_TYPES = [ ...@@ -71,7 +71,7 @@ RC_TYPES = [
class OPT: class OPT:
cnf_file = '/etc/stonedb.cnf' cnf_file = '/etc/my.cnf'
dump_table_info = False dump_table_info = False
dump_column_info = False dump_column_info = False
dump_dp_info = False dump_dp_info = False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册