Table of Contents
This section allows installing a separate database only without splitting the rest of the server components like when using the rudder-multiserver-setup script. The setup is done in two places: on the database server and on the Rudder root server.
It also allows moving an existing database to another server.
![]() | Use different user and database names |
---|---|
It can be useful, for example if you want to share you database server between several Rudder root servers (see note below), to use a different database for your Rudder root server. To do so:
su - postgres -c "psql -q -c \"CREATE USER alternate_user_name WITH PASSWORD 'GENERATE_A_PASSWORD'\"" su - postgres -c "psql -q -c \"CREATE DATABASE alternate_base_name WITH OWNER = alternate_user_name\""
cp /opt/rudder/etc/postgresql/reportsSchema.sql /opt/rudder/etc/postgresql/reportsSchema-alternate.sql
ALTER database rudder SET standard_conforming_strings=true; To: ALTER database alternate_base_name SET standard_conforming_strings=true;
su - postgres -c "psql -q -U alternate_user_name -h localhost -d alternate_base_name \ -f /opt/rudder/etc/postgresql/reportsSchema-alternate.sql"
|
![]() | Use the same database server for several Rudder root servers |
---|---|
It is possible to share the same database server between several Rudder instances, by following the preceding tip to use a different database than the default one. However, there are some important points to know:
|