system sh/stop_dnodes.sh system sh/deploy.sh -n dnode1 -i 1 system sh/exec.sh -n dnode1 -s start sql connect print ============= step1 sql create user u_read pass 'taosdata1' sql create user u_write pass 'taosdata1' sql alter user u_read pass 'taosdata' sql alter user u_write pass 'taosdata' sql show users if $rows != 3 then return -1 endi print ============= step2 sql close sleep 2500 print user u_read login sql connect u_read sql alter user u_read pass 'taosdata' sql alter user u_write pass 'taosdata1' -x step2 return -1 step2: sql_error create user read1 pass 'taosdata1' sql_error create user write1 pass 'taosdata1' sql show users if $rows != 3 then return -1 endi print ============= step3 sql close sleep 2500 print user u_write login sql connect u_write sql_error create user read2 pass 'taosdata1' sql_error create user write2 pass 'taosdata1' sql alter user u_write pass 'taosdata' sql alter user u_read pass 'taosdata' -x step3 return -1 step3: sql show users if $rows != 3 then return -1 endi print ============= step4 sql close sleep 2500 print user root login sql connect sql create user oroot pass 'taosdata' sql show users if $rows != 4 then return -1 endi system sh/exec.sh -n dnode1 -s stop -x SIGINT