Tuesday, December 6, 2011

Cake PHP 2.0.4 - "Cake is NOT able to connect to the database."

Hello,

I unpacked a fresh CakePHP 2.0.4 archive on a unix server running apache & mysql. The default index page says that everything is working except that it is not able to connect to the database. I can connect to the database with the command line mysql client using the same credentials that are in the database.php file. I checked phpinfo(), and it says that the PDO mysql driver is loaded.

I added these lines to the app/index.php, to attempt to force verbose error reporting:

error_reporting(E_ALL);
ini_set('display_errors', TRUE);

Yet, I see no errors in the logs or on the page. Any suggestions as to how I can make this work, or how to debug why it's not working?

Thanks!

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: