MyXDB Installation Guide
Follow the steps below to finish installing MyXDB.
- Define Environment Variables
- Download Prerequisits
- Setup Database
- Build(optional)
- Test(optional)
- Install XMLdbGUI (optional for graphical user interface)
Define Environment Variables
You need to define the following environment variables:
- MYXDB_HOME - MyXDB installation directory. e.g. set MYXDB_HOME=c:\myxdb
- Add bin directory to PATH. e.g. set PATH=MYXDB_HOME\bin;%PATH%
Download Prerequisites
The following products need to be installed.
-
JRE 1.3 or later
-
MySQL
-
JDK 1.3 or later (optional for development and build)
-
Ant (optional for development and build)
Download and copy the jar files of the following products into MYXDB_HOME\lib.
Setup Database
- Go to MYXDB_HOME\install\mysql if you are using MySQL.
- Run install.bat to set up a database. You should have a privilege
for creating databases.
- Run uninstall.bat if you want to uninstall MyXDB.
Now you are ready to use the MyXDB command line tool. Type "myxdb" or
"myxdb -user user_name" from the command prompt to invoke the tool. The user_name is
a valid MySQL user name. Continue with the next steps if you want to
build MyXDB yourself. Also read "Install XMLdbGUI" if you want to use a
GUI tool.
Build (optional)
- Go to MYXDB_HOME where build.xml can be found.
- Type ant to build myxdbms.jar in MYXDB_HOME\lib.
Test (optional)
- Go to MYXDB_HOME\junit_test.
- Run build.bat to build test programs
- Type run.bat for unit testing.
Install XMLdbGUI (optional for graphical user interface)
- Download and install XMLdbGUI.
- Replace XMLDBGUI_HOME\run.bat with MYXDB_HOME\samples\XMLdbGUI\run.bat.
- Replace XMLDBGUI_HOME\conf\conf.xml with MYXDB_HOME\samplea\XMLdbGUI\conf\conf.xml.
- Create a directory XMLDBGUI_HOME\lib\myxdb.
- Copy MYXDB_HOME\lib\myxdbms.jar to XMLDBGUI_HOME\lib\myxdb\myxdbms.jar.
- Copy MYXDB_HOME\lib\mm.mysql-2.0.11-bin.jar to XMLDBGUI_HOME\lib\myxdb\mm.mysql-2.0.11-bin.jar.
- Type run.bat to start XMLdbGUI.