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
If I change the db host in app/etc/env.php to localhost instead of 127.0.0.1 I get
STUCK!!
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' ]