Welcome Guest, Not a member yet? Register   Sign In
Database query calls wrong DB instance!!
#1

[eluser]Swedie[/eluser]
I have encounter a very mysterious problem that I cannot debug.

On my local test server things are working as expected. On the production server, with the exact same Apache, PHP and MySQL, CI apparently tried to run a query from another instance than the one I'm doing the query through.

The query fails with CI saying it can't find: databasename.sometable.

My application is a controller and lots of models.

I've run print_r on both the complete CI object and the DB instance and the database settings are all correct. But when running the query, CI for some reason is digging in the wrong DB instance and thus not finding the table.

What can be causing this?


Messages In This Thread
Database query calls wrong DB instance!! - by El Forum - 02-23-2011, 10:59 AM
Database query calls wrong DB instance!! - by El Forum - 02-23-2011, 11:11 AM
Database query calls wrong DB instance!! - by El Forum - 02-24-2011, 01:57 AM
Database query calls wrong DB instance!! - by El Forum - 02-24-2011, 08:12 AM
Database query calls wrong DB instance!! - by El Forum - 02-24-2011, 08:29 AM
Database query calls wrong DB instance!! - by El Forum - 02-24-2011, 09:14 AM
Database query calls wrong DB instance!! - by El Forum - 02-24-2011, 01:06 PM
Database query calls wrong DB instance!! - by El Forum - 02-24-2011, 04:29 PM
Database query calls wrong DB instance!! - by El Forum - 02-24-2011, 09:49 PM
Database query calls wrong DB instance!! - by El Forum - 02-25-2011, 12:44 AM
Database query calls wrong DB instance!! - by El Forum - 02-25-2011, 03:02 AM
Database query calls wrong DB instance!! - by El Forum - 02-25-2011, 03:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB