Oops, I muddled the terminology a bit.  Corrected message:

It turned out that my db user did not have access to the cake
database.  So it wasn't that Cake couldn't connect to the Mysql (a
stand-alone test script was able to connect just fine), but that Cake
couldn't access the database that I created.

It would be handy if the Cake DB error message was a little more
informative.  It's certainly possible for PHP to distinguish between a
failed Mysql connection and a failed database access.


On Mar 9, 5:47 pm, GrantB <[email protected]> wrote:
> It turned out that my db user did not have access to the cake
> database.  So it wasn't that Cake couldn't connect to the DB (a stand-
> alone test script was able to connect just fine), but that Cake
> couldn't access the table.
>
> It would be handy if the Cake DB error message was a little more
> informative.  It's certainly possible for PHP to distinguish between
> failed DB connection and failed table access.
>
> -Grant
>
> On Mar 9, 7:27 am, persivo_cunha <[email protected]> wrote:
>
>
>
> > if you are sure that database.php is correct, verify if your database
> > is running, because this message just shows when the cakephp really
> > can't connect with database.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to