You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by le...@apache.org on 2005/07/07 16:53:36 UTC

svn commit: r209607 - /gump/branches/Gump3/gump

Author: leosimons
Date: Thu Jul  7 07:53:32 2005
New Revision: 209607

URL: http://svn.apache.org/viewcvs?rev=209607&view=rev
Log:
Fix the 'create-database' command

Modified:
    gump/branches/Gump3/gump

Modified: gump/branches/Gump3/gump
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/gump?rev=209607&r1=209606&r2=209607&view=diff
==============================================================================
--- gump/branches/Gump3/gump (original)
+++ gump/branches/Gump3/gump Thu Jul  7 07:53:32 2005
@@ -826,15 +826,15 @@
   
   # this will also ensure we don't delete an existing database since the
   # create command will fail
-  local mysqladminresult=`mysqladmin create "$db" $@`
+  echo command is mysqladmin create "$db" $@ '2>&1'
+  local mysqladminresult=`mysqladmin create "$db" $@ 2>&1`
   if [[ ! -z "$mysqladminresult" ]]; then
     error "Gump failed to create the database $db. mysqladmin said:
 
 $mysqladminresult"
   fi
   
-  local mysqlresult=`mysql create "$db" $@ <
-    $GUMP_HOME/gumpdb/src/sql/gump3-database-definition.sql`
+  local mysqlresult=`mysql $@ "$db" < $GUMP_HOME/gumpdb/src/sql/gump3-database-definition.sql`
   
   if [[ ! -z "$mysqlresult" ]]; then
     error "Gump failed to populate the database $db. mysql said: