From 11984b19e8893999da7fbe91152a92c81fa8a43c Mon Sep 17 00:00:00 2001 From: Manuel Rego Casasnovas Date: Thu, 11 Jun 2009 18:54:29 +0200 Subject: [PATCH] ItEr12S13XestionDaComunidade: Deleting trailing whitespaces and adding instructions to create the database in PostgreSQL at README.txt --- README.txt | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/README.txt b/README.txt index b3668f684..ebbb96bca 100644 --- a/README.txt +++ b/README.txt @@ -1,18 +1,23 @@ * Database creation ----------------- - + Current databases supported: PostgreSQL (default), MySQL, and + + Current databases supported: PostgreSQL (default), MySQL, and HSQLDB (In-Process/Standalone Mode). - + + For PostgreSQL and MySQL: - + - Create a database with name "navaldev" (for development). - - Create a database with name "navaldevtest" (for the test fase in +CREATE DATABASE navaldev; + - Create a database with name "navaldevtest" (for the test fase in development). +CREATE DATABASE navaldevtest; - Create user "naval" with password "naval" with necessary privileges for - accessing (creating tables, selecting data from tables, etc.) the + accessing (creating tables, selecting data from tables, etc.) the previous databases. - +CREATE USER naval WITH PASSWORD 'naval'; +GRANT ALL PRIVILEGES ON DATABASE navaldev TO naval; +GRANT ALL PRIVILEGES ON DATABASE navaldevtest TO naval; + + For HSQLDB. There is nothing to do. * Compilation @@ -38,7 +43,7 @@ navalplanner-webapp/target/navalplanner-webapp.war + NOTES FOR USING OTHER DATABASES: - + - MySQL: * Remember to start MySQL with "--default-table-type=InnoDB" option for @@ -46,7 +51,7 @@ * Use "mvn -Pdev,mysql <>" e.g. mvn -Pdev,mysql install - + - HSQLDB: * Use "mvn -Pdev,hsqldb <>" @@ -54,8 +59,8 @@ * Profiles -------- - + Check section in the root pom.xml to see the profile-based approach used in the project. The default profiles (the one assumed by the above - instructions) are "dev" and "postgresql" (meaning "use PostgreSQL assuming a + instructions) are "dev" and "postgresql" (meaning "use PostgreSQL assuming a development environment").