By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,028 Members | 1,733 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,028 IT Pros & Developers. It's quick & easy.

Cake bake in cakephp

P: 10
Hi
I am using cakephp on linux ,and using xampp.
I am trying to excute bake cake command:
sudo apt-get install cakephp-scripts
..
..
..
cake bake -app /opt/lampp/htdocs/blog/app
and this screen appear to me
Welcome to CakePHP v1.2.3.8166 Console
---------------------------------------------------------------
App : app
Path: /opt/lampp/htdocs/blog/app
---------------------------------------------------------------
Interactive Bake Shell
---------------------------------------------------------------
[D]atabase Configuration
[M]odel
[V]iew
[C]ontroller
[P]roject
[Q]uit
What would you like to Bake? (D/M/V/C/P/Q)
>
the problem when i select c: these warning and errors appear to me
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /usr/share/php/cake/libs/model/datasources/dbo/dbo_mysql.php on line 374

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /usr/share/php/cake/libs/model/datasources/dbo/dbo_mysql.php on line 379

Warning: mysql_get_server_info(): supplied argument is not a valid MySQL-Link resource in /usr/share/php/cake/libs/model/datasources/dbo/dbo_mysql.php on line 387

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /usr/share/php/cake/libs/model/datasources/dbo/dbo_mysql.php on line 411
Error: Your database does not have any tables.
And my database has 5 tables.
Any one can help me in this
thanks
Feb 12 '10 #1
Share this Question
Share on Google+
1 Reply


Markus
Expert 5K+
P: 6,050
See if this discussion is helpful.
Feb 12 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.