从 Bluemix 复制远程数据库
Replicating a remote database from Bluemix
数据库URL:
https://$用户名:$密码@$REMOTE_USERNAME.Cloudant.com/$DATABASE_NAME
$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:xxxxxxx@c39cexxx-bluemix.cloudant.com"
},
}
]
}
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:xxxxxxx@f39c4xxx- bluemix.cloudant.com"
},
}
]
}
请举例说明从 Bluemix 复制远程数据库。
如果您想从远程目标复制到本地数据库,您的数据库 URL 将是:
https://$remote_username:$remote_password@$remote_username.cloudant.com/$remote_database
例如
https://f39c45g0-bluemix:0ebdc6c7@f39c45g0-bluemix.cloudant.com/the_remote_database
您可以在此处找到更多信息:https://developer.ibm.com/clouddataservices/cloudant-replication/
注意:我假设您没有 post 您的实际凭据,如果您这样做了,您至少应该更改您的密码。
数据库URL: https://$用户名:$密码@$REMOTE_USERNAME.Cloudant.com/$DATABASE_NAME
$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:xxxxxxx@c39cexxx-bluemix.cloudant.com"
},
}
]
}
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:xxxxxxx@f39c4xxx- bluemix.cloudant.com"
},
}
]
}
请举例说明从 Bluemix 复制远程数据库。
如果您想从远程目标复制到本地数据库,您的数据库 URL 将是:
https://$remote_username:$remote_password@$remote_username.cloudant.com/$remote_database
例如
https://f39c45g0-bluemix:0ebdc6c7@f39c45g0-bluemix.cloudant.com/the_remote_database
您可以在此处找到更多信息:https://developer.ibm.com/clouddataservices/cloudant-replication/
注意:我假设您没有 post 您的实际凭据,如果您这样做了,您至少应该更改您的密码。