You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2008-01-27 15:29:53

andy232
Member
Registered: 2007-11-15
Posts: 6

Multiple databases / mandants

Hi,

is it possible to use multiple databases in one glpi environment ?

company 1 = database1
company 2 = database2
and so on ?

One solution would be to use servereal glpi-installations on the same server....
Is there an easier way ?

Greetings, Andy.

Offline

#2 2008-01-27 15:51:31

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Multiple databases / mandants

What would be interest of this ?

Does Entities are not enough to handle various enterprise ?

I use a "glpi/config/config_path.php" solution for this purpose, containing something like :

<?php
if (strpos($_SERVER["PHP_SELF"],"glpi1")==1) {
define("GLPI_CONFIG_DIR",     "/etc/glpi/1");
} else if (strpos($_SERVER["PHP_SELF"],"glpi2")==1) {
define("GLPI_CONFIG_DIR",     "/etc/glpi/2");
} else {
define("GLPI_CONFIG_DIR",     "/etc/glpi/3");
}
?>

And each /etc/glpi/?/config_db.php give database parameters.

Remi.


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2008-01-30 00:07:36

andy232
Member
Registered: 2007-11-15
Posts: 6

Re: Multiple databases / mandants

Remi, I didn't saw the entity-feature in glpi. Now I found it. Sounds great.

The alternate way of using config_path is also a good idea.

Thank You.
Andy.

Offline

Board footer

Powered by FluxBB