Dashboard > Penrose > ... > Demo > Sample Database
Sample Database
Added by Endi S. Dewata, last edited by Endi S. Dewata on Sep 23, 2005  (view change)
Labels: 


The following are the instructions to setup the sample database. The instructions were written for MySQL 4.x, but you can use other database systems.

Create Database

Make sure you have a MySQL server running on your local machine. Create a MySQL database called "penrose_demo". Exececute the following commands inside a MySQL client:

create database penrose_demo;

Create Database User

Create a MySQL user called "penrose" with password "penrose". Exececute the following commands inside a MySQL client:

grant all privileges on *.* to 'penrose'@'<hostname>' identified by 'penrose' with grant option;
grant all privileges on *.* to 'penrose'@'localhost' identified by 'penrose' with grant option;
grant all privileges on *.* to 'penrose'@'%' identified by 'penrose' with grant option;

Change the <hostname> with your machine name.

Create Database Tables

Populate the database with the SQL script provided in PENROSE_HOME/samples/sql. Exececute the following commands inside a MySQL client:

use penrose_demo;
source PENROSE_HOME/samples/sql/example.sql;

The script was written for MySQL 4.x. If you are using a different database system, you might need to modify the script.

Tables Relationships

Site running on a free Atlassian Confluence Open Source Project License granted to Safehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators