0

In a Laravel app at EC2 instance deployed by Elastic Beanstalk I'm getting this error for any of artisan command.

[ec2-user@ip-xxx-31-44-192 ondeck]$ sudo php artisan -vvv

In PDOConnection.php line 50:

  SQLSTATE[HY000] [2002] Connection refused


In PDOConnection.php line 46:

  SQLSTATE[HY000] [2002] Connection refused

Running echo on my DB_HOST, DB_PORT, DB_USERNAME and DB_PASSWORD, I can see all variables are correctly defined.

How can I better debug this?

anderlaini
  • 1,593
  • 2
  • 24
  • 39

1 Answers1

1

artisan calls app/Console/Kernel.php schedule() method in each command. So if you have some errors there - you'll see it in artisan output. Check is it a reason

Ilya Kolesnikov
  • 623
  • 8
  • 17