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!!

1 REPLY 1

Re: indexing error SQLSTATE[HY000] [2002] Connection refused

If you are connecting to DB over SSL connection try disabling that in the env.php and at your DB server level and try again.

'driver_options' => [
1014 => true,
1009 => '/etc/ssl/MySQL-Cert/XYZcrt.pem'
]
---
Problem Solved Click Accept as Solution!:Magento Community India Forum