7

i have changed the password of database in the server. then, i get error message for front store and admin panel of magento. how can i solve it ? immediately , please.

front store: "There has been an error processing your request

Exception printing is disabled by default for security reasons.

Error log record number: 1429988333864"

admin: "There has been an error processing your request

Exception printing is disabled by default for security reasons.

Error log record number: 1030432780141
1
  • for future requests -> get into the var/log/reports folder of your magento 2 installation and check the corresponding file (the log record number is the filename) for the real error message. that will at least make for a much clearer question that helps others to find suitable answers
    – Lemonade
    May 18, 2018 at 8:53

3 Answers 3

16

Go to app/etc/env.php then update this:

'db' =>
  array (
    'table_prefix' => '',
    'connection' =>
    array (
      'default' =>
      array (
        'host' => 'localhost',
        'dbname' => 'database_name',
        'username' => 'database_username',
        'password' => 'database_password',
        'active' => '1',
      ),
    ),
  ),
3

Go to app/etc/local.xml and set your new password here too:

<default_setup>
    <connection>
        ...
        <username><![CDATA[your_user]]></username>
        <password><![CDATA[your_password]]></password>
        ...
4
  • no local.xml file
    – Amd2030
    Aug 7, 2017 at 8:49
  • @Amd2030 Magento1 or 2?
    – sv3n
    Aug 7, 2017 at 9:00
  • app/etc/local.xml is for Magento 1. Correct are answers with app/etc/env.php.
    – pevik
    Aug 2, 2020 at 16:18
  • @pevik the question was edited after my answer.
    – sv3n
    Aug 2, 2020 at 17:12
1

I solved it from /Magento/app/etc/env.php

See How to edit Magento 2 Database Configuration file?

Not the answer you're looking for? Browse other questions tagged or ask your own question.