If none of the solutions worked, try checking your .env file and ensure the database connection is set to '127.0.0.1' instead of 'localhost'
.env
'127.0.0.1'
'localhost'