If you are on a Mac and using MAMP you need to make a link between the MAMP 
MySQL and where PHP command line is looking for it. 

Here is what I use 

> ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock


On Thursday, December 20, 2012 4:29:43 AM UTC-8, Reza Talamkhani 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to