basic2.sim 512 字节
Newer Older
S
Shengliang Guan 已提交
1 2 3 4 5 6 7 8 9 10 11
system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/exec.sh -n dnode1 -s start -v
sql connect

print =============== step1: create drop show dnodes
$x = 0
step1:
	$x = $x + 1
	sleep 1000
	if $x == 10 then
S
Shengliang Guan 已提交
12
	  print ----> dnode not ready!
S
Shengliang Guan 已提交
13 14 15
		return -1
	endi
sql show dnodes
S
Shengliang Guan 已提交
16
print ----> $data00 $data01 $data02 $data03 $data04 $data05
S
Shengliang Guan 已提交
17 18 19 20 21 22 23 24 25
if $rows != 1 then
  return -1
endi

print =============== step2: create db
sql create database db vgroups 1

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