Prepare the Database

by John Samuel Anderson last modified Jul 02, 2010 01:28 PM
Create or setup a database for ContentMirror to use.

The details of these steps are way beyond the scope of this post. If you need help setting up your database, contact your system administrator and/or try Googling it yourself. Good luck!

PostgreSQL

  1. Create a PostgreSQL database that will be used by both ContentMirror and by Django.  Something like this:
    createdb mydatabase
  2. Setup user accounts and permissions so everything plays nicely.

You should be able to run psql mydatabase at the command prompt.

MySQL

  1. Create a MySQL database that will be used by both ContentMirror and by Django.  Something like this:
    $ mysql
    mysql> CREATE DATABASE mydatabase;
  2. Setup user accounts and permissions so everything plays nicely.

You should be able to run mysql mydatabase at the command prompt.

 SQLite

I haven't tried using SQLite, but I understand that SQLAlchemy (which ContentMirror uses for the database layer) now supports SQLite. I'd be interested in your comments on this.