Additional NOTE to the above: after creating the database you must add it to the file sybase.config located in the sybase_db directory.
Sybase Central can be downloaded for free and you can use it for many administrative functions. More documentation about the external tools will appear in the next version of our documentation.
You can also create databases on the command line/prompt:
- open a terminal (linux, unix, os x) or a command prompt
- change directory to your Servoy installation directory
- change directory to the sybase_db directory inside you Servoy directory
- a. On mac os x set your DYLD_LIBRARY path to this directory
Using bash:
export DYLD_LIBRARY_PATH=/path/to/sybase_db
for example:
export DYLD_LIBRARY_PATH=/Applications/Servoy/sybase_db
Using tcsh:
setenv DYLD_LIBRARY_PATH /path/to/sybase_db
example:
setenv DYLD_LIBRARY_PATH /Applications/Servoy/sybase_db
b. On Linux/Unix:
Using bash:
export LD_LIBRARY_PATH=/path/to/sybase_db
for example:
export LD_LIBRARY_PATH=/usr/local/servoy/sybase_db
Using tcsh:
setenv LD_LIBRARY_PATH /path/to/sybase_db
example:
setenv LD_LIBRARY_PATH /usr/local/servoy/sybase_db
c. On Windows:
set ASANY9=\path to sybase_db
for example:
set ASANY9=c:\Program Files\Servoy\sybase_db
- create the database using the following command:
a. On OS X, Linux and Unix:
./dbinit -t <name>.log -z UTF8 <name>.db
b. On windows:
dbinit.exe -t <name>.log -z UTF8 <name>.db
add the databse to the sybase.config file in the sybase_db directory. If you created the database in the database directory create a line like this:
database/mydb.db
if you created it somewhere else put the full path to the database in the config file.
Finally make sure you have stopped the database server for it to automatically start the database when Servoy launches. On Windows: right click the SQL tray icon and choose Exit. On Mac, Linux, Unix: kill the dbsrv* processes. You can also stop the database using dbstop in the sybase_db directory:
./dbstop -c "eng=servoy_repository;uid=DBA;pwd=SQL"