10 Sep 2010, 12:42am
Projects:
by

leave a comment

  • CouchDB Upgrade From 0.11.0 To 1.0.1

    This post also serves as a note to self when I do another upgrade in the future.

    It’s still not clear to me of what’s the best practice for upgrading a CouchDB installation. From the mailing list, some people suggested backing up the config and database files, uninstalling the old version, then installing the new version. But, really, what’s involved in uninstalling a CouchDB installation? manually deleting the files from the old installation? I had the same confusion when I tried to do the upgrade on OS X, once from a compile from source, and another from a CouchDBX installation.

    So instead of ‘the best practice’, I’ll just share what worked for me. I simply installed the new version using the same way as when I installed the old version, i.e. compile from source, and the files from 1.0.1 installation overwrote the files from 0.11.0 . Here’s what I did:

    1. I searched for CouchDB config and database files, and found them in /usr/local/etc/couchdb/local.ini and /usr/local/var/lib/couchdb/mydatabase.couch . I then backed up those files.
    2. The fact that I found those files under /usr/local indicated that I must’ve used –prefix=/usr/local when I installed 0.11.0 .
    3. I downloaded the source code of CouchDB 1.0.1, then ran the usual:
      ./configure --prefix=/usr/local
      make
      sudo make install
    4. Voila, CouchDB 1.0.1 was installed, the config and database files were still intact, everything worked fine.

    Related Posts:

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

     

    Recent Posts

    Recent Comments

    • Cliffano Subagio: Good to hear about your opportunity to visit Japan, I’m sure you will have a great...
    • Kayla: I’m going to Japan for two week this summer. Our sister city is Tsubame, Japan and my school has an...
    • poseidonfu: thanks,Very effective
    • anonymous: I really enjoyed both the last lecture and the book. I don’t think that theres anyone that I look up...
    • dioni: The thing I hate about HK is how people shove and push in the queue. Can’t they be civilized?!! I kept...

    Most Commented Posts

    Linkroll