[SOLVED] Database Error! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [SOLVED] Database Error! (/showthread.php?tid=42712) |
[SOLVED] Database Error! - El Forum - 06-16-2011 [eluser]Emkay[/eluser] Hi guys, I am a bit of a novice PHP programmer and it's my first time using a PHP framework. As far as I'm finding it very helpful and convenient, I can't seem to get past a very simple hurdle. No matter how I configure my database settings I keep getting the same error: Quote:Your application/config/database.php file does not appear to contain a valid configuration array. My configuration settings are as follows Code: $active_group = 'default'; Can anyone pinpoint at the problem? I am certain the database access credentials are correct. [SOLVED] Database Error! - El Forum - 06-16-2011 [eluser]Emkay[/eluser] Anyone? Please help, this is driving me insane! All other scripts are working with the same credentials, have I missed out something in the other parts of the codeigniter configuration? [SOLVED] Database Error! - El Forum - 06-16-2011 [eluser]InsiteFX[/eluser] Your credentials should be what you setup MySQL for on your system! Also make sure that you start MySQL or it will never work! Also try truning off pconnect = FALSE The Error is stating that the config file is wrong! Check for white space before and after InsiteFX [SOLVED] Database Error! - El Forum - 06-17-2011 [eluser]danmontgomery[/eluser] Are you trying to manually load the database config? That error message is only called by $this->config->load()...? [SOLVED] Database Error! - El Forum - 06-17-2011 [eluser]Emkay[/eluser] Nevermind. Being a noob I added the database entry in the wrong autoload configuration, I put it in the config array instead of the library array! Now I no longer get the error message! |