Welcome Guest, Not a member yet? Register   Sign In
splitting database
#1

Hi folks

possible to define multiple databases for multiple applications (under one codebase)?

Which files need to be modified? (short list sufficient...)


Greets

G.
Reply
#2

(This post was last modified: 03-28-2020, 04:08 PM by jreklund.)

So one database per application (domain?). Or multiple databases for multiple domains?

https://codeigniter4.github.io/userguide..._apps.html
https://codeigniter4.github.io/userguide...cting.html

You can always force settings in multiple index.php, loading different database (or other config) settings. Or load it from Enviroments:
https://codeigniter4.github.io/userguide...ments.html
Reply
#3

Thanks man, will check it out later...

For your convenience... I have foreseen a setup with one application and one database per domain if feasable which I don't know now but will know after I studied your proposals I guess.

Thanks && Cheers
Reply
#4

Okey, I would then switch database by providing different environments from nginx/apache if you have direct access. Or you need multiple index.php files.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB