Cake bake in cakephp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ahmed mahmoud
    New Member
    • Feb 2009
    • 9

    Cake bake in cakephp

    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_serve r_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
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    See if this discussion is helpful.

    Comment

    Working...