Open your /app/config/database.php and change "host" from "localhost" to "127.0.0.1". If you use .evn file please update that file
ie
if /app/config/database.php
'mysql' => [
'driver' => 'mysql',
'host' => '127.0.0.1',
'database' => 'your_database_name',
'username' => 'your_database_user',
'password' => 'your_database_password',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
'strict' => false,
],
if .env file
DB_HOST=127.0.0.1
DB_DATABASE=your_database_name
DB_USERNAME=your_database_user
DB_PASSWORD=your_database_password