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 > [email protected] For more options, visit this group at > 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
