gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leosim...@apache.org
Subject svn commit: r209607 - /gump/branches/Gump3/gump
Date Thu, 07 Jul 2005 14:53:36 GMT
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:



Mime
View raw message