Set the $new_link parameter to true to force a new link even if user &
password is the same:

http://ar.php.net/mysql_connect

resource mysql_connect ( [string $server [, string $username [, string
$password [, bool $new_link [, int $client_flags]]]]] );

Though that should be necessary when calling mysql_connect with the same
parameters.

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de Grant Cox
Enviado el: Martes, 20 de Febrero de 2007 08:54 p.m.
Para: Cake PHP
Asunto: Re: Associations cross databases

The only thing that can mess it up, is a bug, apparently in MySQL,
where connections to multiple databases need to have different
usernames and passwords. So, in your app/config/database.php, each
connection needs to connect with a different username/password.

I found out about this from someone on the IRC channel (probably
PhpNut) some months ago, but I didn't keep a note of any urls for more
information...


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to