We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

mysql settings, config.php vs database.php, v. 3.5.4

How Do I?

iameric's avatar
iameric
48 posts
8 years ago
iameric's avatar iameric

Hi EE Community.

I assume that presented with conflicting data between the two mentioned files that actual used values are taken from config.php? As in the following case where config.php contains the following data:

$config['database'] = array (
  'expressionengine' => 
  array (
    'hostname' => 'localhost',
    'username' => 'username',
    'password' => 'password',
    'database' => 'database',
  ),
);

Information in database.php is outdated in comparison to the data found in config.php so the question is, should I change database.php to reflect the correct information or is it a legacy file in version 3?

on a side note I have noticed that my /system/ee folder still has a folder called “installer_3.5.4” - was I supposed to remove that and I missed it? I thought that I wouldn’t be able to access the admin panel if it were there (as a security feature), but the admin panel is operating normally.

Thanks everyone - in advance!! 😊

Eric

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

database.php is not used in ExpressionEngine 3 following the upgrade. If PHP has sufficient permissions, it will delete that file after moving the database settings to the config.php file. If it does not, it is safe to remove after completing the upgrade. Same with the installer folder—since we were unable to remove it, it was renamed to include the suffix so the app is not stuck in “updater” mode.

       
iameric's avatar
iameric
48 posts
8 years ago
iameric's avatar iameric

Thank you, Derek, for the clarification. I often change site files locally, zip, upload the entire site (instead of syncing)… and sometimes do the reverse, so it’s no surprise that my permissions get changed to defaults - perhaps I need be more careful to ensure as much in future updates.

Thanks again!

Best, Eric

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

My pleasure!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.