1

使用powershell 脚本如何连接到独立的NosDB数据库?

Connect-DatabaseCluster 显然默认连接到集群。

4

1 回答 1

2

如果你这样做

 get-help Connect-DatabaseCluster -full

您将获得所有可能值的列表。对你来说重要的是

-StandAlone [<SwitchParameter>]
Specifies if the database is standalone.

Required?                    false
Position?                    named
Default value
Accept pipeline input?       true (ByValue, ByPropertyName)
Accept wildcard characters?  false

所以你的命令更改为

Connect-DatabaseCluster -StandAlone

它写在文档中

于 2016-07-14T09:25:05.500 回答