Using MAMP: 

tried it but don´t work for me do not know why cake 2.2.2 couldn´t find it 
or forgot something to ad in the .bash_profile something he can´t find when 
i try comman *cake bake all*:

*mac*:app User$ *cake bake all*

Welcome to CakePHP v2.2.2 Console
---------------------------------------------------------------
App : app
Path: /Applications/MAMP/vhost/wfcms/htdocs/app/
---------------------------------------------------------------
Bake All
---------------------------------------------------------------
Warning Error: PDO::__construct(): [2002] No such file or directory (trying 
to connect via unix:///var/mysql/mysql.sock) in 
[/Applications/MAMP/projects/cakephp2_2_2/lib/Cake/Model/Datasource/Database/Mysql.php,
 
line 149]

Error: Database connection "Mysql" is missing, or could not be created.
#0 
/Applications/MAMP/projects/cakephp2_2_2/lib/Cake/Model/Datasource/DboSource.php(261):
 
Mysql->connect()
#1 
/Applications/MAMP/projects/cakephp2_2_2/lib/Cake/Model/ConnectionManager.php(101):
 
DboSource->__construct(Array)
#2 
/Applications/MAMP/projects/cakephp2_2_2/lib/Cake/Console/Command/Task/ModelTask.php(908):
 
ConnectionManager::getDataSource('default')
#3 
/Applications/MAMP/projects/cakephp2_2_2/lib/Cake/Console/Command/Task/ModelTask.php(845):
 
ModelTask->getAllTables('default')
#4 
/Applications/MAMP/projects/cakephp2_2_2/lib/Cake/Console/Command/Task/ModelTask.php(934):
 
ModelTask->listAll('default')
#5 
/Applications/MAMP/projects/cakephp2_2_2/lib/Cake/Console/Command/BakeShell.php(149):
 
ModelTask->getName('default')
#6 
/Applications/MAMP/projects/cakephp2_2_2/lib/Cake/Console/Shell.php(390): 
BakeShell->all()
#7 
/Applications/MAMP/projects/cakephp2_2_2/lib/Cake/Console/ShellDispatcher.php(201):
 
Shell->runCommand('all', Array)
#8 
/Applications/MAMP/projects/cakephp2_2_2/lib/Cake/Console/ShellDispatcher.php(69):
 
ShellDispatcher->dispatch()
#9 /Applications/MAMP/projects/cakephp2_2_2/lib/Cake/Console/cake.php(43): 
ShellDispatcher::run(Array)
#10 {main}

Am Dienstag, 2. Oktober 2012 04:35:03 UTC+2 schrieb Yasir Arafat:
>
> Hello,
>
> I am sure this will help you. Here details about the baking.
>
> http://arafats.info/cakephp-cake-bake-on-windows/
>
> THanks
>
> On Tue, Oct 2, 2012 at 4:50 AM, euromark <dereu...@gmail.com <javascript:>
> > wrote:
>
>> you shouldnt really use /localhost/some/folder/app/webroot/ in the first 
>> place
>> use vhosts and root directly to the webroot folder
>> then you only need the single one in this folder. nothing else.
>> thats how it will be live (in the interwebs) anyway.
>>
>>
>> Am Dienstag, 2. Oktober 2012 00:29:13 UTC+2 schrieb webfacer:
>>
>>> I know. but why the console command don´t do it it self? Do i can do 
>>> something to let the command bake create the htaccess?
>>>
>>> thx
>>>
>>> Am Montag, 1. Oktober 2012 23:59:31 UTC+2 schrieb euromark:
>>>>
>>>> you can just steal the .htacess from the github rep:
>>>> https://github.com/cakephp/**cakephp<https://github.com/cakephp/cakephp>
>>>>
>>>>
>>>> Am Montag, 1. Oktober 2012 21:15:22 UTC+2 schrieb webfacer:
>>>>>
>>>>> After creating the project it doesen´t work because the command "cake 
>>>>> bake" doesn´t bake the root htaccess which will point to the /app/webroot/
>>>>>
>>>>> is this an issue of *cake bake?*
>>>>> *
>>>>> *
>>>>> *
>>>>> *
>>>>>
>>>>  -- 
>> Like Us on FacekBook 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...@googlegroups.com<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> cake-php+u...@googlegroups.com <javascript:>.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>>  
>>  
>>
>
>
>
> -- 
> *Thanks & Regards.
>
> -----------------------------------------------------------------------------------------------------------------------------
> Yasir Arafat (Hasib)*
> *Deputy Project Manager, *Software Solutions
> Grameen Solutions
> Contact Information:
> **
> **
> Cell : +8801816 536 901, +880197 *333* 2 888
> Web: http://arafats.info
> <http://arafats.info>
>
> 

-- 
Like Us on FacekBook 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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to