Re: Cake is NOT able to connect to the database. on FEDORA 16
I run Linux Mint and I also have xamp installed and to get things
working properly with cake I've had to install a couple of other
packages.
sudo apt-get install php5-cli
sudo apt-get install php5-mysql
On Mar 6, 12:28 pm, Daniel Carrillo Broeder <dcbroe...@gmail.com>
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 For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home