Categories
CMS Magento Mastering Development

Connection refused error in command line Magento installation 2.4.1?

Magento removed web installation in 2.4.1 version, while installing from command line, I am getting below error:

 bin/magento setup:install --base-url=http://dev.magento.local/ --db-host=127.0.0.1:3307  --db-name=magento24 --db-user=root --db-password=Admin@123 --admin-firstname=admin --admin-lastname=admin --admin-email=admin@admin.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1 --search-engine=elasticsearch7 --elasticsearch-host=es-host.example.com --elasticsearch-port=9200

SQLSTATE[HY000] [2002] Connection refused

In InstallCommand.php line 274:
                               
  Parameter validation failed  
                              

Leave a Reply

Your email address will not be published. Required fields are marked *