1
我想连接到Couchbase数据库服务器槽couchbase gem。Ruby:连接到Couchbase
require 'couchbase'
c = Couchbase.connect('http://<server>:<port>/pools/default/buckets/auth')
我得到一个错误:
*** Couchbase::Error::BucketNotFound Exception: bootstrap error, The bucket requested does not exist
下面的代码与(couchbase python package)工作原理:
from couchbase.bucket import Bucket
c = Bucket('couchbase://<server>/auth')
我怎样才能从红宝石通过使用连接字符串连接couchbase://<server>/auth
?
但是,当我从蟒蛇连接'桶('couchbase:///auth')' - 成功,并且当我从ruby连接到同一个服务器'Couchbase.connect('http:// :/pools/default/bucket/auth')'我有错误'Couchbase :: Error :: Auth:引导程序错误,身份验证失败。您可能提供了无效的用户名/密码组合。两个库都使用相同的Web管理端口 - 8091 –