Jacques,

The key to your problem is in your phrasing: "everything works fine
until...".  In my experience, if your database worked fine before you
tried console, you probably have a pathing problem.  Cake has some
nice docs and if you want the long spiel on what to do, check out
http://book.cakephp.org/view/109/Introduction.  If you like short
concise instructions, here are mine:

1) Find the path to your Wamp's installation of php (if you are
installed on C: with defaults, most likely it is C:\wamp\bin\php
\php5.2.6.  Add that to your path.

2) Find the path to your app's cake console directory.  For example, I
developed an app called gradebook, so my path ended up being C:\wamp
\www\gradebook\cake\console.
You guessed it, add that to your path.

Btw, to add those to your path it is best if you add them to the
environment variables on your machine.

Restart your machine so the environment variables kick in.

Open a command window.  Change directories to your app's main
directory.
type "cake bake" and you should see a standard interactive menu for
cake.

If this did not work you have a configuration error.  If it did work,
congrats!



On Oct 27, 12:23 pm, Jacques Coeur <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using cakephp and I am currently following the tutorial from IBM
> (currently part2).
> Everything was working fine until I needed to bake the Models (or the
> Controller).
>
> Whever I choose the test or default settings, I get :
> """
> Fatal error : call to undefined function mysql_connect() in ..../dbo/
> dbi_mysql.php.
> """
> The application can connect to the database otherwise.
> I only get an error with the baking ...
>
> Do you have any idea ?
>
> Thanks in advance.
> JCoeur
> PS : I am using apache 1.3, php 5x
--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to