Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
# 在集群中,同一时间只能running一个数据库
# 创建数据库时,需要确保其他数据库已经关闭
$ admintools -t create_db \
 --data_path=/vdata/data/vdb \
 --catalog_path=/vdata/catalog/vdb \
 --database=vdb \
 --password=vertica \ # Database password
 --hosts=vertica1,vertica2 # Comma-separated list of hosts to participate in database
Database with 1 or 2 nodes cannot be k-safe and it may lose data if it crashes
Distributing changes to cluster.
Creating database vdb …… 




#删除数据库
$ admintools -t drop_db --database=vdb
Database vdb dropped