You must have some configuration / setup problem. As a sanity check, just rename the whole /app/config/database.php file, and check that Cake does throw errors about not being able to connect - otherwise perhaps you are editing the wrong file altogether. Then try setting your new connection properties as $default in database.php, see if that works.
To get multiple/alternative databases working you just need to do those two things - define the connection in /app/config/database.php, and set the appropriate $useDbConfig in your model. On Nov 7, 8:00 am, alessio <[EMAIL PROTECTED]> wrote: > Hi All, > > I have write a file database.php in my apllication folder"/cake/myapp/ > config" > > var $mydb = array( > 'driver' => 'mysql', > 'persistent' => false, > 'host' => 'localhost', > 'port' => '', > 'login' => 'root', > 'password' => '', > 'database' => 'mydb', > 'schema' => '', > 'prefix' => '', > 'encoding' => '' > ); > > in my model I have write var $useDbConfig = 'mydb'; > > but cakephp use always the dbconfig present in dbo_mssql.php and not > the application configuration > > cakephp version is 1.2.0.5875 pre-beta > > somebody can help me? > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
