I'm trying to setup Acl, so i've to use shell script, but this don't
work cause can't establish connection with DB.
I've launched

sudo -s ./cake bake

then typed D for database configuration, setting up parameters and
then saved the info in: /Applications/MAMP/htdocs/cakephp/app/config/
database.php
This path is the same path where my cake web application read database
configuration and my application is fully working, why when I exec
I've all thease warning?

$ sudo -s ./cake schema create DbAclPassword:
Welcome to CakePHP v1.3.2 Console
---------------------------------------------------------------
App : app
Path: /Applications/MAMP/htdocs/cakephp/app
---------------------------------------------------------------
Cake Schema Shell
---------------------------------------------------------------

Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/mysql/mysql.sock' (2) in /Applications/MAMP/htdocs/
cakephp/cake/libs/model/datasources/dbo/dbo_mysql.php on line 540

Warning: mysql_select_db(): supplied argument is not a valid MySQL-
Link resource in /Applications/MAMP/htdocs/cakephp/cake/libs/model/
datasources/dbo/dbo_mysql.php on line 546

Warning: mysql_get_server_info(): supplied argument is not a valid
MySQL-Link resource in /Applications/MAMP/htdocs/cakephp/cake/libs/
model/datasources/dbo/dbo_mysql.php on line 554

Warning: mysql_real_escape_string() expects parameter 2 to be
resource, boolean given in /Applications/MAMP/htdocs/cakephp/cake/libs/
model/datasources/dbo/dbo_mysql.php on line 655

Warning: mysql_real_escape_string() expects parameter 2 to be
resource, boolean given in /Applications/MAMP/htdocs/cakephp/cake/libs/
model/datasources/dbo/dbo_mysql.php on line 655

Warning: mysql_real_escape_string() expects parameter 2 to be
resource, boolean given in /Applications/MAMP/htdocs/cakephp/cake/libs/
model/datasources/dbo/dbo_mysql.php on line 655

Warning: mysql_real_escape_string() expects parameter 2 to be
resource, boolean given in /Applications/MAMP/htdocs/cakephp/cake/libs/
model/datasources/dbo/dbo_mysql.php on line 655

The following table(s) will be dropped.
acos
aros
aros_acos
...

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to