PROBLEM - nvalid database connection group |
Hi,
First of all, sorry for my poor english, ill try to do my best to explain my problems with ci 3.0.6. I have done a fresh install on debian and im trying to use mysqli driver to do my db connections. In config/database i have this parameters. PHP Code: $active_group = 'default'; In the model. PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); And when i try to execute my controller, it shows me this error: Quote:You have specified an invalid database connection group (questionWeb) in your config/database.php file. I dont understand why it talks about "questionWeb" when my group connection is "default" :S. Can anyone help me? Sorry for my english!
If your running this on your own system and not the web then hostname should be localhost.
Most database servers use localhost as the name try that. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
i know this but im running the codeigniter in another serv thats not my machine.
Thanks anyway.
What you've shown is not your full config/database.php file ... somewhere in it you have $active_group = 'questionWeb' and that's what causing the error.
this is just enough:
$this->load->database(); no need to say $this->load->database('default'); default is already default in this case |
Welcome Guest, Not a member yet? Register Sign In |