Also, by any chance maybe you didn't start xamp?

>From the command line:

sudo /opt/lampp/lampp start

To stop it:

sudo /opt/lampp/lampp stop

Of course if you installed xamp somewhere else you'll need to navigate to 
the appropriate location before starting it. Mine is under /opt/lampp 

Andrew

On Tuesday, March 6, 2012 12:28:26 PM UTC-8, Daniel Carrillo Broeder 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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to