Non-CI Database Issue - 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: Non-CI Database Issue (/showthread.php?tid=43611) |
Non-CI Database Issue - El Forum - 07-18-2011 [eluser]nZac[/eluser] There is no General Topics forum anymore so I am not sure if this is the right place but I will post it here anyway. PHP Version: 5.1.6 (I know, old... if it was me we would upgrade today!) MySQL Version: 5.0.17 CI: 2.0.2 What I am trying to do: Connect to a Database What I have tried: Code: #In CI Result: "A Database Error Occured" Code: # Not in CI Result: Access denied for user 'username'@'555.55.555.%' to database 'database' However, I can access the information schema table. This tells me that the credentials I am entering are correct because I get the array: Quote:array(4) { Any thoughts on what could cause this? Non-CI Database Issue - El Forum - 07-18-2011 [eluser]TheBaron[/eluser] Doesn't the access denied message mean the database user account doesn't have permission to access the database specified? I.e. they don't read permission? Non-CI Database Issue - El Forum - 07-18-2011 [eluser]nZac[/eluser] That is what I thought but I can access the DB by logging into phpMyAdmin with the credentials I use in the script. |