3
(click on this box to dismiss)
Can I install and run two versions of CUBRID on the same machine?
I need to test my app against both versions and I'm not sure if installing both would be a good idea.
I'm interested in knowing if this would work both on Windows and on Ubuntu.
Thanks!
1
Answer
2
Yes you can. You have to configure the following parameters:
- cubrid.conf
- cubrid_port_id
- ha_port_id (if you're using High Availability)
- cubrid_broker.conf
- MASTER_SHM_ID
- BROKER_PORT
- APPL_SERVER_SHM_ID
If you're using different CUBRID versions, you have to run each of them with the following environment variables:
- $CUBRID = the path to where CUBRID is installed (ex: C:\CUBRID or /home/ginarrbrik/CUBRID)
- $CUBRID_DATABASES = the path to where the databases.txt file resides (ex: C:\CUBRID\databases or /home/ginarrbrik/CUBRID/databases)
- $CUBRID_LANG=ex: en_US
- On linux systems you also have to append $CUBRID/lib to $LD_LIBRARY_PATH (different one for each instance).
For example:
[ginarrbrik@cubrid ~]$ export CUBRID=/home/ginarrbrik/CUBRID841 [ginarrbrik@cubrid ~]$ export CUBRID_DATABASES=$CUBRID/databases [ginarrbrik@cubrid ~]$ export CUBRID_LANG=en_US [ginarrbrik@cubrid ~]$ export LD_LIBRARY_PATH=$CUBRID/lib:$LD_LIBRARY_PATH [ginarrbrik@cubrid ~]$ cubrid service start @ cubrid master start ++ cubrid master start: success @ cubrid broker start ++ cubrid broker start: success [ginarrbrik@cubrid ~]$
asked last year
viewed 531 times