How can I setup my codeigniter application so that if it cant connect to one mysql server it connects to another? ie: set primary mysql and secondary mysql.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would set up multiple codeigniter databases in the config/database (see below)
Then in my controller I would load the database and check if it was successful.
I haven’t tested it but I would assume it would work.