While running Magento 2 Command & getting error as above or defined below
As trying to run below command or any other command
- php bin/magento deploy:mode:set developer
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
- php bin/magento setup:static-content:deploy -f
- php bin/magento indexer:reindex
- php bin/magento cache:clean
- php bin/magento cache:flush
and geeting error
SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it
Solution:: Need to Start / Restart MYSQL Server.