Welcome Guest, Not a member yet? Register   Sign In
Db connects with mysql_connect but not database autoload
#8

[eluser]CJL01[/eluser]
I did actually solve this problem, although it is probably to do with my hosting provider than CI.

My website is hosted with Eukhost, and I'm on a shared server, so it turns out that there was a db_prefix that was related to my account with Eukhost that I needed to specify in my CI config to get it to connect. Also, I changed the driver from mysql to mysqli. For some reason I didn't need either of these things with the standard PHP mysql_connect but I did need it for CI. Now it connects fine.

Good luck!


Messages In This Thread
Db connects with mysql_connect but not database autoload - by El Forum - 06-26-2009, 05:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB