Support the ongoing development of Laravel.io →
Queues

When I run the command

php artisan queue:flush --env=dev --verbose

I get the error:

[PDOException]                                                                               
  SQLSTATE[28000] [1045] Access denied for user 'mysql'@'localhost' (using password: YES)  
                                                                                               

mysql is not the user for any real database. It is the dummy default in config/database.php, which is overridden for my dev environment and production environments (which are in working order). So when I have artisan queue:flush (explicitely or not) use dev, it somehow is calling an environment that does not actually exist. I'm not sure how to debug queues to see if all of my queues are operating in this mystery environment or not, but it seems like queues don't work.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

IOM instanceofmichael Joined 11 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.