show_create_db.sim 502 字节
Newer Older
Y
yihaoDeng 已提交
1 2 3 4 5 6
system sh/stop_dnodes.sh

system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c walLevel -v 0

system sh/exec.sh -n dnode1 -s start
H
Haojun Liao 已提交
7
sleep 2000
Y
yihaoDeng 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
sql connect

print =============== step2
sql create database db
sql show create database db

if $rows != 1 then 
  return -1
endi

print =============== step3
sql use db
sql show create database db

if $rows != 1 then 
  return -1
endi

if $data00 != db then 
  return -1
endi  

sql drop database db

system sh/exec.sh -n dnode1 -s stop -x SIGINT