/app/etc/env.php --- 'localhost' vs '127.0.0.1'
I changed localhost to 127.0.0.1 however my Magento frontend and backend broke after that.
'db' => [ 'table_prefix' => '', 'connection' => [ 'default' => [ 'host' => 'localhost', 'dbname' => 'shop', 'username' => 'shop', 'password' => '1234567', 'active' => '1' ] ] ],
came to know from server that somehow mysql crashed, and they had to work on mysql conf files to recover. i am still unable to understand what went wrong??