request..
                  
                  
                  
                  
                  
                  Eg:
                  
                  
                  
                  
                  
                  i have websites - 
                  
                  
                  abc.example.com and xyz.example.com
                  
                  
                  
                  
                  
                  when a user requests with abc.example.com it should connect to database with name : abc
                  
                  
                  
                  
                  
                  and connect to database xyz when it request from xyz.example.com
                  
                  
                  
                  
                  
                  can anyone guide me ? Thanks
                  
                  
                
Why not just connect to all at startup, and pick the correct connection when a request is received?
Обсуждают сегодня