delete_writing2.sim 981 字节
Newer Older
S
slguan 已提交
1 2
system sh/stop_dnodes.sh

S
slguan 已提交
3
system sh/deploy.sh -n dnode1 -i 1
S
scripts  
slguan 已提交
4
system sh/cfg.sh -n dnode1 -c wallevel -v 0
S
slguan 已提交
5 6 7

print ========= start dnodes
system sh/exec.sh -n dnode1 -s start
S
scripts  
slguan 已提交
8
sleep 3000
S
slguan 已提交
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
sql connect

sql create database db 
sql create table db.tb (ts timestamp, i int)
sql insert into db.tb values(now, 1)

sql create database db2
sql create table db2.tb2 (ts timestamp, i int)
sql insert into db2.tb2 values(now, 1)

sql create database db3 
sql create table db3.tb3 (ts timestamp, i int)
sql insert into db3.tb3 values(now, 1)

sql create database db4 
sql create table db4.tb4 (ts timestamp, i int)
sql insert into db4.tb4 values(now, 1)

print ======== start back
S
scripts  
slguan 已提交
28
run_back general/db/back_insert.sim
S
slguan 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
sleep 1000

print ======== step1 
$x = 1 	
while $x < 10

    print drop database times $x
	sql drop database db -x step1
	step1:

	sql create database db 
	sql create table db.tb (ts timestamp, i int)

	sleep 3000
	
	$x = $x + 1
endw
S
scripts  
slguan 已提交
46 47

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