Skip to content
This repository

LMDB

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 assets
Octocat-spinner-32 css
Octocat-spinner-32 images
Octocat-spinner-32 js
Octocat-spinner-32 protected
Octocat-spinner-32 themes
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .htaccess
Octocat-spinner-32 README.md
Octocat-spinner-32 favicon.ico
Octocat-spinner-32 index-test.php
Octocat-spinner-32 index.php
README.md

lmdb

About

lmdb is a personal/social movie database built with the yii framework.

Installation

Include yii framework

$ mkdir protected/vendor
$ cd protected/vendor
$ http://yii.googlecode.com/files/yii-1.1.5.r2654.tar.gz
$ tar xzf yii-1.1.5.r2654.tar.gz
$ rm yii-1.1.5.r2654.tar.gz
$ mv yii{-1.1.5.r2654,}

Create database

# database setup
$ mysqladmin -uroot create lmdb
$ cd protected/data
$ mysql -uroot lmdb < schema.mysql.sql

# perform migrations
#   works on zsh
$ mysql -uroot lmdb < [0-9]*.sql
#   works on bash
$ cat [0-9]*.sql | mysql -uroot lmdb

# add admin user
$ mysql -uroot ldmb < add-admin-user.sql

Configure

Copy protected/config/console.php.example to protected/config/console.php and protected/config/main.php.example to protected/config/main.php.example. Edit the DB configuration in both files.

Set write permissions to /assets and /images/upload.

Login with admin/admin

Something went wrong with that request. Please try again.