2016-11-09 54 views
2

我導入數據庫備份AWS服務器上的本地系統中移動錯誤:沒有這樣的文件或董事

在使用命令恢復反思DB:

rethinkdb恢復/ home /league_ally/rethinkexport.tar.gz

以下錯誤來:

Error when launching 'rethinkdb-restore': No such file or directory 
The rethinkdb-restore command depends on the RethinkDB Python driver,  
which must be installed. 
If the Python driver is already installed, make sure that the PATH 
environment variable 
includes the location of the backup scripts, and that the current 
user has permission to 
access and run the scripts. 
Instructions for installing the RethinkDB Python driver are available 
here: 
http://www.rethinkdb.com/docs/install-drivers/python/ 
+0

因此,從這裏安裝python驅動程序http://www.rethinkdb.com/docs/install-drivers/python/ – Suvitruf

+0

我已經安裝了python驅動程序,但它仍然給這個錯誤 –

+0

嘗試'export PATH = $ PATH:/ usr/local/bin' – Suvitruf

回答

1

我有同樣的問題,而在我的應用程序恢復數據。我發現PIP需要升級。升級PIP後,我能夠恢復我的數據庫

1

正如你已經做了,第一步是安裝rethinkdb Python包。例如:

$ pip install rethinkdb 

然後,如果你仍然可以看到以下錯誤:

$ rethinkdb-restore 
Error when launching 'rethinkdb-restore': No such file or directory 

嘗試運行它爲:

$ python -mrethinkdb._restore 
Usage: rethinkdb restore FILE [-c HOST:PORT] ... 
相關問題