Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register


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!

link comment (0)
asked 2 years ago
corina28
16
1 Answer
2

Yes you can. You have to configure the following parameters:

  1. cubrid.conf
    1. cubrid_port_id
    2. ha_port_id (if you're using High Availability)
  2. cubrid_broker.conf
    1. MASTER_SHM_ID
    2. BROKER_PORT
    3. 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 ~]$

link comment (2)
answered 2 years ago
ginarrbrik
516




You are either using a very old browser or a browser that is not supported.
In order to browse cubrid.org you need to have one of the following browsers:



Internet Explorer: Mozilla Firefox: Google Chrome: