當您啓動rethinkdb實例時,它將自動創建一個名爲'test'的數據庫。當你運行多個實例和集羣他們使用rethinkdb proxy
這導致問題:如何防止RethinkDB創建測試數據庫
Database name conflict: test is the name of more than one database
如果試圖刪除數據庫即使用
r.dbDrop('test').run(conn, function(result) {
console.log(result) // Will result in error
});
這將產生以下錯誤:
ReqlOpFailedError: Database 'test' is ambiguous; there are multiple databases with that name in r.dbDrop("test")
那麼如何防止RethinkDB創建'tes t'數據庫自動?或者如果你遇到名稱衝突如何刪除數據庫?