Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Mobile

How to create user in CouchCocoa local database

3 replies [Last post]
  • Login or register to post comments
Mon, 11/26/2012 - 12:29
Rickye
Offline
Joined: 11/26/2012
Groups: None

I'm developing an app which replicates the remote database for a local, but I can't write to _users DB or add a user.
Please help!

Top
  • Login or register to post comments
Fri, 11/30/2012 - 11:42
jens
Offline
Joined: 10/04/2011
Groups: None

You're using TouchDB locally? It doesn't support access control or the _users database, because it doesn't make any sense for an embedded database. (Same reason that SQLite doesn't support access control.)

FYI, we prefer the Google group 'couchbase-mobile' for discussion and questions. The URL is in the TouchDB readme.

Top
  • Login or register to post comments
Fri, 12/07/2012 - 04:57
Rickye
Offline
Joined: 11/26/2012
Groups: None

No, I'm using CouchbaseMobile locallly (this won't be for the AppStore), is it possible to do with it?

Thanks!

Top
  • Login or register to post comments
Fri, 12/07/2012 - 11:02
jens
Offline
Joined: 10/04/2011
Groups: None

Are you authenticating your request? There is a default admin account with a randomized password, to protect against some other app discovering the listener port and trying to do stuff to your databases. The CouchbaseMobile object has an accessor to get the password.

BTW, we don't really support Couchbase Mobile anymore. I can answer some questions based on what I remember about it, but don't have the time to do any real troubleshooting or fix any bugs. We recommend upgrading to TouchDB, which is actually pretty easy to do since you still use CouchCocoa as the main API.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker