-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrpsdbCreate.cmd
More file actions
40 lines (27 loc) · 1.45 KB
/
rpsdbCreate.cmd
File metadata and controls
40 lines (27 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@rem *****************************************************************************
@rem this script starts the Derby ij and creates the database
@rem *****************************************************************************
@rem change the following line to 'echo on' for debugging
@echo off
setlocal
@rem call dbSetenv.cmd script to set up the Derby environment
@rem *************************************************
@rem this script sets up the environment for Derby
@rem *************************************************
@echo off
@rem This environment variable names the databse
set DB_NAME=jdbc:derby://localhost:1527/rpsdb
@rem This environment variable points to the Derby install directory
set DERBY_INSTALL=../DerbyLib
@rem We use the following in dbStart.cmd to deal with Java 7 security issues
set DERBY_PORT=1527
set CLASSPATH=.;%DERBY_INSTALL%\derby.jar;%DERBY_INSTALL%\derbytools.jar;%DERBY_INSTALL%\derbynet.jar;%DERBY_INSTALL%\derbyclient.jar;%CLASSPATH%
title Create RPSDB database
@rem start ij, and run the the dbCreate.sql script, which connects
@rem to the database, as user/password guest/password,
@rem creates the database if it doesn't exist,
@rem and creates the schema and database tables
java -Dij.driver=org.apache.derby.jdbc.ClientDriver -Dij.database=%DB_NAME%;create=true -Dij.user=guest -Dij.password=password org.apache.derby.tools.ij rpsdbCreate.sql
echo RPSDB created.
pause
endlocal