Another half of hour to find the database configuration in a very popular CMS: CakePHP but I don’t know, unfortunately. What’s a beautiful day when I have change to configure 2 new (with me) CMS: Drupal and CakePHP. The same requirements and the same issue. 🙂
Again, I finished downloading all source files and database then continue to configure the database settings. Like the trouble with Drupal before, I spent half of hour to know how to change it.
Database Configuration Settings In CakePHP
It’s located at /app/config/database.php as below:
[php]<?php
class DATABASE_CONFIG {
var $default = array(
‘driver’ => ‘mysql’,
‘persistent’ => false,
‘host’ => ‘localhost’,
‘login’ => ‘root’,
‘password’ => ”,
‘database’ => ‘database_name’,
‘prefix’ => ”,
‘encoding’ => ‘UTF8’,
‘port’ => ”,
);
var $test = array(
‘driver’ => ‘mysql’,
‘persistent’ => false,
‘host’ => ‘localhost’,
‘login’ => ‘user’,
‘password’ => ‘password’,
‘database’ => ‘test_database_name’,
‘prefix’ => ”,
‘encoding’ => ‘UTF8’,
);
}
?>