basic.sim 903 字节
Newer Older
S
[TD-16]  
slguan 已提交
1
system sh/stop_dnodes.sh
S
slguan 已提交
2
system sh/deploy.sh -n dnode1 -i 1
S
slguan 已提交
3
system sh/exec_up.sh -n dnode1 -s start
S
scripts  
Shengliang Guan 已提交
4
sleep 3000
S
[TD-16]  
slguan 已提交
5 6 7 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 33 34 35 36 37 38 39 40 41 42 43 44 45
sql connect

print =============== show accounts
sql show accounts
if $rows != 1 then 
  return -1
endi

print $data00 $data01 $data02

print =============== create account1
sql create account account1 PASS 'account1'
sql show accounts
if $rows != 2 then 
  return -1
endi

print $data00 $data01 $data02
print $data10 $data11 $data22

print =============== create account2
sql create account account2 PASS 'account2'
sql show accounts
if $rows != 3 then 
  return -1
endi

print $data00 $data01 $data02
print $data10 $data11 $data22
print $data20 $data11 $data22

print =============== drop account1
sql drop account account1
sql show accounts
if $rows != 2 then 
  return -1
endi

print $data00 $data01 $data02
print $data10 $data11 $data22

S
scripts  
slguan 已提交
46
system sh/exec_up.sh -n dnode1 -s stop  -x SIGINT