cancel
Showing results for 
Search instead for 
Did you mean: 

indexing error SQLSTATE[HY000] [2002] Connection refused

indexing error SQLSTATE[HY000] [2002] Connection refused

I have magento 2 running with this vagrant setup https://github.com/rgranadino/mage2_vagrant and Im receiving this error when trying 

php bin/magento indexer:reindex

 

Screen Shot 2017-01-18 at 5.07.00 PM.png

 

If I change the db host in app/etc/env.php to localhost instead of 127.0.0.1 I get

Screen Shot 2017-01-18 at 5.09.10 PM.png

 

STUCK!!