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, 2011 Hoan 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 hoan@4rapiddev.com

8 years ago ResourcesCakePHP, Database, How To213
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
18,697 views
Notepad Plus Plus Compare Plugin
How To Install Compare Text Plugin In Notepad Plus Plus
14,446 views
Microsoft SQL Server 2008 Attach Remove Log
Delete, Shrink, Eliminate Transaction Log .LDF File
13,326 views
JQuery Allow only numeric characters or only alphabet characters in textbox
10,871 views
C# Read Json From URL And Parse/Deserialize Json
7,461 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
  • Magento Fatal error: Unsupported operand types
  • Ionic bower the name contains uppercase letters
  • PHP Magento Get Manufacturer Name And ID From Magento Product ID
  • Know Simple Hacks To Systematize Media Library in WordPress
  • A handy guideline on adding custom menu item in WordPress admin
Categories
  • CSharp (45)
  • Facebook Graph API (19)
  • Google API (7)
  • Internet (87)
  • iPhone XCode (8)
  • Javascript (35)
  • Linux (26)
  • MySQL (16)
  • PHP (84)
  • Problem Issue Error (29)
  • Resources (32)
  • SQL Server (25)
  • Timeline (5)
  • Tips And Tricks (140)
EMAIL SUBSCRIPTION

Sign up for our newsletter to receive the latest news and event postings.

Recommended
  • CDN
  • Hosting
  • Premium Themes
  • VPS
2014 © 4 Rapid Development