4

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
  • 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 '18 at 8:53
9

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',
      ),
    ),
  ),
|improve this answer|||||
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>
        ...
|improve this answer|||||
  • no local.xml file – Amd2030 Aug 7 '17 at 8:49
  • @Amd2030 Magento1 or 2? – sv3n Aug 7 '17 at 9:00
1

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

See How to edit Magento 2 Database Configuration file?

|improve this answer|||||

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