![]() |
CIUnit can't connect to database - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: CIUnit can't connect to database (/showthread.php?tid=56801) |
CIUnit can't connect to database - El Forum - 01-21-2013 [eluser]felix_[/eluser] I'm having some trouble setting up my CodeIgniter 2.1.1 installation with CIUnit. I already installed phpunit via PEAR and CIUnit via its install.sh script. The instrcutions I used can be found .here "application/config/testing/database.php" was created and does contain the right values. But when running "phpunit" inside my "tests" folder I just get "[CIUnit] Error: 500 Message: Unable to connect to your database server using the provided settings. Filename: core/Loader.php Line Number: 346" What else can I check? When running the application in my browser the db connection just goes well. So the settings are correct for sure CIUnit can't connect to database - El Forum - 01-22-2013 [eluser]felix_[/eluser] Ok after some digging in the source I found out that the problem was related to OSX and MySQL. I've described the problem in a blog post including a solution. http://felix.sub-reality.org/blog/2013/01/21/setting-up-codeigniter-2-dot-1-with-datamapper-1-dot-8-and-mycunit-on-os-x/ |