WAMP – No connection could be made because the target machine actively refused it

Error comes when trying to connect to database to run Laravel application

Solution

  1. Check on which port mysql service running and mention that port on .env file.
  2. IF problem still there set port value empty in database.php
'port' => '',