summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2006-04-12 17:02:23 (EDT)
committerEike Stepper2006-04-12 17:02:23 (EDT)
commitef571c4d8d8f6f93877d7021e5e435ae11ae382a (patch)
treeb4b381bafea7f6454a15686e74448290db177b97
parentd2ab96067eac6cafc499671d4379dabe6708aebe (diff)
downloadcdo-ef571c4d8d8f6f93877d7021e5e435ae11ae382a.zip
cdo-ef571c4d8d8f6f93877d7021e5e435ae11ae382a.tar.gz
cdo-ef571c4d8d8f6f93877d7021e5e435ae11ae382a.tar.bz2
better sql init scripts.
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.server/initMysql.bat10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.server/initMysql.bat b/plugins/org.eclipse.emf.cdo.examples.server/initMysql.bat
index d39169f..66e7657 100644
--- a/plugins/org.eclipse.emf.cdo.examples.server/initMysql.bat
+++ b/plugins/org.eclipse.emf.cdo.examples.server/initMysql.bat
@@ -1,3 +1,9 @@
-@echo off
+set ROOTPW=montages
+set USER=test@localhost
+set PASSWORD=test
+set DATABASE=cdoTest
-mysql -u test -ptest -e "drop database if exists cdoTest; create database cdoTest" mysql
+mysql -u root -p%ROOTPW% -e "drop database if exists %DATABASE%" mysql
+mysql -u root -p%ROOTPW% -e "create database %DATABASE%" mysql
+mysql -u root -p%ROOTPW% -e "create user %USER% identified by '%PASSWORD%'" mysql
+mysql -u root -p%ROOTPW% -e "grant all privileges on %DATABASE%.* to %USER%" mysql