Tuesday, April 26, 2011

Slow connection to Data base

Hello everybody!

I've installed and configured cake 1.3.8 on an Ubunutu Server 10.10
all right.

Before configuring the database, the cake home page was taking 0.15 s
to load and was alerting that it wasn't able to connect to the
database (of course)...

So, I configured my database.php (in my case is an Windows PC on my
LAN):

class DATABASE_CONFIG {

var $default = array(
'driver' => 'mysql',
'persistent' => false,
'host' => '10.1.1.33',
'login' => 'cook',
'password' => '#########',
'database' => 'cook',
'prefix' => '',
);

var $test = array(
'driver' => 'mysql',
'persistent' => false,
'host' => '10.1.1.33',
'login' => 'cook',
'password' => '#########',
'database' => 'testcook',
'prefix' => '',
);
}


After configuring this way, the home page is alerting me that cake php
IS ABLE to connect. But it is taking 4 seconds to display any page.

Is it normal?

Thank you!

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

No comments: