清理会丢失用户以及库信息,需提前准备好备份
- 停止
taosd
、taosAdapter
systemctl stop taosadapter
systemctl status taosadapter
systemctl stop taosd
systemctl status taosd
- 删除数据文件
rm -rf /var/lib/taos/*
- 启动
taosd
、taosAdapter
systemctl start taosd
systemctl status taosd
systemctl start taosadapter
systemctl status taosadapter
- 进入taos,建库建用户
create database test duration 5d keep 7d;
-- 密码要单引号
create user user_name pass 'password';
- 执行切换数据库,执行某些建表DDL