gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r407791 - in /gump/branches/Gump3/dynagump: README.txt src/main/resources/hibernate.cfg.xml
Date Fri, 19 May 2006 13:20:29 GMT
Author: leosimons
Date: Fri May 19 06:20:28 2006
New Revision: 407791

URL: http://svn.apache.org/viewvc?rev=407791&view=rev
Log:
Point out database setup.

 * src/main/resources/hibernate.cfg.xml: add in a default user/password combo -- let's not
encourage the default to be a completely insecure database setup.

 * README.txt: provide pointers on database configuration.

Modified:
    gump/branches/Gump3/dynagump/README.txt
    gump/branches/Gump3/dynagump/src/main/resources/hibernate.cfg.xml

Modified: gump/branches/Gump3/dynagump/README.txt
URL: http://svn.apache.org/viewvc/gump/branches/Gump3/dynagump/README.txt?rev=407791&r1=407790&r2=407791&view=diff
==============================================================================
--- gump/branches/Gump3/dynagump/README.txt (original)
+++ gump/branches/Gump3/dynagump/README.txt Fri May 19 06:20:28 2006
@@ -17,6 +17,8 @@
   DynaGump requires:
 
    o  A Java 1.5 or later compatible virtual machine for your operating system.
+   
+   o  A MySQL installation (tested with 5.0.15).
 
    o  Apache Maven 2.0 or later (http://maven.apache.org) 
 
@@ -25,11 +27,28 @@
   How do I run DynaGump?
   ----------------------
   
-   1) [download Sun's JTA 1.0.1B from http://java.sun.com/products/jta/]
-   2) mvn install:install-file -Dfile=<path-to-file>/jta-1_0_1B-classes.zip \
+   *) [download Sun's JTA 1.0.1B from http://java.sun.com/products/jta/]
+   *) mvn install:install-file -Dfile=<path-to-file>/jta-1_0_1B-classes.zip \
       -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar
-   3) mvn package
-   4) mvn jetty6:run
+      
+   *) create gump database and user if they do not exist already:
+
+         mysqladmin create database gump
+         mysql -u root -p gump < src/database/Gump3DB.sql
+         echo "'GRANT ALL ON gump.* TO 'gump'@'localhost' IDENTIFIED BY 'somepassword'" |
mysql -u root -p
+         echo "FLUSH PRIVILEGES" | mysql -u root -p
+    
+      (changing the password to something else of course)
+   *) let hibernate know about the db name / username / password by editing
+   
+         src/main/resources/hibernate.cfg.xml
+
+   *) optionally push sample data into database:
+   
+         mysql -u gump -p gump < src/database/Gump3TempDB.sql
+
+   *) mvn package
+   *) mvn jetty6:run
 
   Point your browser to http://127.0.0.1:8080/ to see DynaGump in action.
 

Modified: gump/branches/Gump3/dynagump/src/main/resources/hibernate.cfg.xml
URL: http://svn.apache.org/viewvc/gump/branches/Gump3/dynagump/src/main/resources/hibernate.cfg.xml?rev=407791&r1=407790&r2=407791&view=diff
==============================================================================
--- gump/branches/Gump3/dynagump/src/main/resources/hibernate.cfg.xml (original)
+++ gump/branches/Gump3/dynagump/src/main/resources/hibernate.cfg.xml Fri May 19 06:20:28
2006
@@ -10,8 +10,8 @@
         <!-- Database connection settings -->
         <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
         <property name="connection.url">jdbc:mysql://localhost/gump</property>
-        <property name="connection.username">root</property>
-        <property name="connection.password"></property>
+        <property name="connection.username">gump</property>
+        <property name="connection.password">gump</property>
 
         <!-- JDBC connection pool (use the built-in) -->
         <property name="connection.pool_size">1</property>



Mime
View raw message