Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
StoneAtom
stonedb
提交
3ba84414
stonedb
项目概览
StoneAtom
/
stonedb
10 个月 前同步成功
通知
7
Star
817
Fork
141
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
stonedb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
3ba84414
编写于
6月 28, 2022
作者:
H
hustjieke
提交者:
GitHub
6月 28, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(scripts): change stonedb cnf (#117) (#120)
* feat(scripts): change stonedb.cnf to my.cnf (#117)
上级
841a8c86
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
10 addition
and
96 deletion
+10
-96
conf/stonedb.cnf
conf/stonedb.cnf
+0
-87
install_scripts/CMakeLists.txt
install_scripts/CMakeLists.txt
+1
-1
install_scripts/install.sh
install_scripts/install.sh
+1
-1
install_scripts/my.cnf
install_scripts/my.cnf
+0
-0
install_scripts/reinstall.sh
install_scripts/reinstall.sh
+1
-1
scripts/CMakeLists.txt
scripts/CMakeLists.txt
+1
-1
scripts/stonedb_build.sh
scripts/stonedb_build.sh
+5
-4
scripts/stonedb_tool.py
scripts/stonedb_tool.py
+1
-1
未找到文件。
conf/stonedb.cnf
已删除
100644 → 0
浏览文件 @
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
install_scripts/CMakeLists.txt
浏览文件 @
3ba84414
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
)
install_scripts/install.sh
浏览文件 @
3ba84414
...
@@ -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
install_scripts/
stonedb
.cnf
→
install_scripts/
my
.cnf
浏览文件 @
3ba84414
文件已移动
install_scripts/reinstall.sh
浏览文件 @
3ba84414
...
@@ -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
...
...
scripts/CMakeLists.txt
浏览文件 @
3ba84414
...
@@ -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
m
y
sql2mysql
mysql_config
mysql_config
mysql_fix_extensions
mysql_fix_extensions
mysql_setpermission
mysql_setpermission
...
...
scripts/stonedb_build.sh
浏览文件 @
3ba84414
...
@@ -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
...
...
scripts/stonedb_tool.py
浏览文件 @
3ba84414
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录