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 print ----> dnode not ready! return -1 endi sql show dnodes print ----> $data00 $data01 $data02 $data03 $data04 $data05 if $rows != 1 then return -1 endi print =============== step2: create alter drop show user sql create user u1 pass 'taosdata' sql show users sql alter user u1 sysinfo 1 sql alter user u1 enable 1 sql alter user u1 pass 'taosdata' sql drop user u1 sql_error alter user u2 sysinfo 0 print =============== step3: create drop dnode sql create dnode $hostname port 7200 sql drop dnode 2 sql alter dnode 1 'debugflag 143' print =============== step4: create show database sql create database d1 vgroups 1 sql show databases sql show d1.vgroups print =============== step5: create show stable sql create table if not exists stb (ts timestamp, c1 int, c2 float, c3 double) tags (t1 int unsigned) sql show stables if $rows != 1 then return -1 endi goto _OVER print =============== step6: create show table sql create table ct1 using stb tags(1000) sql show tables if $rows != 1 then return -1 endi print =============== step7: insert data print =============== step7: select data _OVER: system sh/exec.sh -n dnode1 -s stop -x SIGINT