• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having two CI installations on different domains using same database

#1
[eluser]Unknown[/eluser]
Hello all,

I tried searching but could not locate any answers to this question. Most results where about have domains use the same CI installation which is not what I am doing.

I am seeking advice, tips, articles whatever on how two separate CI installations (on the same server) can use the same database.

Why?

One application is for clients and the other is for the admin. So the admin can do thing like create client accounts etc...

#2
[eluser]CroNiX[/eluser]
Just use the same username/password/database in the database.php config file? Not really sure what the question is. Sure you can have multiple apps using the same database, if you tell them to.

#3
[eluser]Unknown[/eluser]
Thanks - it was just to see if there are any gotchas - like db locking - the system will be used by about 400 people - not at the same time but when the admin application accesses the db there will be a good chance the db is also being accessed by the client app. I am using innodb as help with this e.g row locking not table.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.