Truemag

  • Categories
    • Tips And Tricks
    • Internet
    • PHP
    • Javascript
    • CSharp
    • SQL Server
    • Linux
  • Lastest Videos
  • Our Demos
  • About
  • Contact
  • Home
  • Write With Us
  • Job Request
Home Resources Change Database Configuration Settings In CakePHP

Change Database Configuration Settings In CakePHP

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’,
);
}
?>

[/php]
Aug 23, 2011Hoan Huynh
Where Drupal Database Configuration SettingsHow To Install Compare Text Plugin In Notepad Plus Plus
You Might Also Like:
  • How To Track Website With Multiple Google Analytisc Accounts
  • Where Drupal Database Configuration Settings
  • Facebook Like Button And Recommend Button With fb:like, iframe and html5
  • Change or reset MySQL Root Account Password
  • Schedule Backup And Zip MySQL Database In Windows
  • Get Image Width Height With JQuery And JavaScript
  • Javascript Problem Set focus textbox on Firefox
  • Jquery checkbox checked
  • Linux Change Root Password
  • Pros and Cons to choose CakePHP for your next web project
Hoan Huynh

Hoan Huynh is the founder and head of 4rapiddev.com. Reach him at [email protected]

9 years ago ResourcesCakePHP, Database, How To242
0
GooglePlus
0
Facebook
0
Twitter
0
Digg
0
Delicious
0
Stumbleupon
0
Linkedin
0
Pinterest
Most Viewed
PHP Download Image Or File From URL
22,210 views
Notepad Plus Plus Compare Plugin
How To Install Compare Text Plugin In Notepad Plus Plus
20,080 views
Microsoft SQL Server 2008 Attach Remove Log
Delete, Shrink, Eliminate Transaction Log .LDF File
15,854 views
JQuery Allow only numeric characters or only alphabet characters in textbox
13,335 views
C# Read Json From URL And Parse/Deserialize Json
9,831 views
4 Rapid Development is a central page that is targeted at newbie and professional programmers, database administrators, system admin, web masters and bloggers.
Recent Posts
  • How To Write a Applying Letter
  • Photo Editor App – How Good Is it?

  • The Best Way To Write An Essay – Creating A Good Essay
  • Free Online Photo Editor
  • Easy Tips For Writing An Essay
Categories
  • CSharp (45)
  • Facebook Graph API (19)
  • Google API (7)
  • Internet (87)
  • iPhone XCode (8)
  • Javascript (35)
  • Linux (28)
  • MySQL (16)
  • PHP (84)
  • Problem Issue Error (29)
  • Resources (32)
  • SQL Server (25)
  • Timeline (5)
  • Tips And Tricks (141)
  • Uncategorized (115)
Recommended
  • Custom Software Development Company
  • Online Useful Tools
  • Premium Themes
  • VPS
2014 © 4 Rapid Development