Without seeing your code my only suggestion is:
App::uses('ConnectionManager', 'Model');
$dataSource = ConnectionManager::getDataSource('default');
On Thu, Dec 20, 2012 at 7:29 AM, Reza Talamkhani
<reza.talamkhani@gmail.com> wrote:
> hello,
>
> I need to Schedule "cake EmailQueue.Sender" command from cronjob.
> In running job i get bellow error command
>
>
> [36mWelcome to CakePHP v2.2.3 Console [0m
> ------------------------------
> ---------------------------------
> App : app
> Path: /home/public_html/app/
> ---------------------------------------------------------------
> [31;4mError: [0m Database connection "Mysql" is missing, or could not be
> created.
>
> but website browsing with browser and connect to DB very well.
> This command in my windows command prompt so running cery well without
> error.
> please help me
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>
>
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
Thursday, December 20, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment