1
数据库URL复制远程数据库: https://开头$ USERNAME:[email protected]$REMOTE_USERNAME.Cloudant.com/$DATABASE_NAME从Bluemix
什么是$ USERNAME,$ PASSWORD,$ REMOTE_USERNAME的价值?
当前Cloudant帐户:
VCAP_SERVICES
{
"cloudantNoSQLDB": [
{
"credentials": {
"username": "c39cexxx-bluemix",
"password": "xxxxxxx",
"host": "c39cexxx-bluemix.cloudant.com",
"port": 443,
"url": "https://c39cexxx-bluemix:[email protected]"
},
}
]
}
The other Cloudant accounts in a database
VCAP_SERVICES
{
"cloudantNoSQLDB": [
{
"credentials": {
"username": "f39c4xxx-bluemix",
"password": "xxxxxxx",
"host": "f39c4xxx-bluemix.cloudant.com",
"port": 443,
"url": "https://f39c4xxx-bluemix:[email protected] bluemix.cloudant.com"
},
}
]
}
请给复制从Bluemix远程数据库的一个例子。
@Olivia:有一段时间没有尝试过,但也有一个云代工CLI插件(https://github.com/ibmjstart/bluemix-cloudant-replicator),可能对您有用。 –
非常感谢!克里斯雪。 – Olivia
Np。如果这为你工作奥利维亚,请接受答案,upvote也会很好:) –