Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8033013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:33:51+00:00 2026-06-05T01:33:51+00:00

Renaming database.php.default to database.php in \app\Config\ in CAKEPHP gives Error I have installed a

  • 0

Renaming database.php.default to database.phpin \app\Config\ in CAKEPHP gives Error

I have installed a fresh copy of CAKEPHP 2.1.3 on XAMPP with Windows 7 and i have got an error

Warning (2): include_once(D:\xampp\htdocs\cakephp\example\app\Config\database.php) [function.include-once]: failed to open stream: No such file or directory [CORE\Cake\Model\ConnectionManager.php, line 68]


Warning (2): include_once() [function.include]: Failed opening 'D:\xampp\htdocs\cakephp\example\app\Config\database.php' for inclusion (include_path='D:\xampp\htdocs\cakephp\example\lib;.;D:\xampp\php\PEAR') [CORE\Cake\Model\ConnectionManager.php, line 68]

When i look into for database.php file in \app\config\ its not present

Instead, i found database.php.default in \app\Config\ and \lib\Cake\Console\Templates\skel\Config

And when i rename the database.php.default to database.php, it still gives me an error.
How do i need to connect to database and next procedure to go ahead.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:33:54+00:00Added an answer on June 5, 2026 at 1:33 am

    Move config file from \lib\Cake\Console\Templates\skel\Config to D:\xampp\htdocs\cakephp\example\app\Config\

    Or create new one with contents:

    class DATABASE_CONFIG {
    
        public $default = array(
            'datasource' => 'Database/Mysql',
            'persistent' => false,
            'host' => 'localhost',
            'login' => 'username',
            'password' => 'password',
            'database' => 'databas name',
            'prefix' => '',
            //'encoding' => 'utf8',
        );
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database with a table named order . When i run php
I am writing a script for renaming/copying the content of a file. I have
I'm working on a script for looping thru PHP files and renaming function calls
I have a CGI script that uses an old database driver that is no
I have dozens of tables in an existing MSSQL database all with autonumber ID
I have a database where all of the tables are prefixed with a set
I have a database showing up in SQL Enterprise Manager as (Restoring...) If i
I have been working to upgrade a Postgresql database from 8.4 to 9.1. I
I have a database .mdf file that is 138 GB along with a transaction
I have a bunch of xml serialized objects in a database. But, I refactored

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.