do you tried?

  public $coffeecake = array(
    'datasource' => 'Database/Mysql',
    'persistent' => false,
    'host' => 'localhost',
    'login' => 'root',
    'password' => '',
    'database' => 'cake',
   );

change ip 127.0.0.1 for localhost? can be dns in the pc!

On Fri, Mar 9, 2012 at 4:37 PM, Daniel Carrillo Broeder <[email protected]
> wrote:

> It works correctly....
>
> Don't know what could cause this problem ...
>
> El martes 6 de marzo de 2012 20:48:18 UTC, cricket escribió:
>
>> Create a simple PHP (not Cake) script to connect to your DB and see if
>> that works.
>>
>> On Tue, Mar 6, 2012 at 3:28 PM, Daniel Carrillo Broeder
>> <[email protected]> wrote:
>> > Hi, i'm having lots of problems, i don't know what to do....
>> >
>> > This is what i did :
>> >
>> > 1.- Installed XAMP
>> > 2.- Made a new database (called cake) with phpMyAdmin.
>> > 2.- Downloaded cakePHP 2.0
>> > 3.- Bake !
>> > 4.- Set permissions to tmp directory
>> >
>> > When I requested "localhost" on chrome everything went ok but "Cake is
>> NOT
>> > able to connect to the database."
>> >
>> > This is my database.php :
>> >
>> >     public $coffeecake = array(
>> >     'datasource' => 'Database/Mysql',
>> >     'persistent' => false,
>> >     'host' => '127.0.0.1',
>> >     'login' => 'root',
>> >     'password' => '',
>> >     'database' => 'cake',
>> >    );
>> >
>> > (localhost does not work)
>> > I can successfully access my DB with (shell) :"mysql -h 127.0.0.0.1 -u
>> root"
>> > and then " USE cake;"
>> >
>> > I also tried to modify "php.ini" to add extension=/path/pdo_mysql.so
>> and it
>> > showed this "Warning: PHP Startup: Unable to load dynamic library
>> > './usr/lib64/php/modules/pdo_**mysql.so' -
>> > ./usr/lib64/php/modules/pdo_**mysql.so: wrong ELF class: ELFCLASS64"
>> >
>> > Please I really need help !!!!!!!!
>> >
>> > --
>> > Our newest site for the community: CakePHP Video Tutorials
>> > http://tv.cakephp.org
>> > Check out the new CakePHP Questions site http://ask.cakephp.org and
>> help
>> > others with their CakePHP related questions.
>> >
>> >
>> > To unsubscribe from this group, send email to
>> > cake-php+unsubscribe@**googlegroups.com<cake-php%[email protected]>For
>> >  more options, visit this group at
>> > http://groups.google.com/**group/cake-php<http://groups.google.com/group/cake-php>
>>
>  --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Bruno Oliveira

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to