Magento - Shell Install Script-SQLSTATE[HY000] [1045] Access denied for user 'magento'@'localhost' (using password: YES)

bin/magento setup:install
–db-password=“[email protected]
[email protected]
[email protected]

while using this command I am getting below error

SQLSTATE[HY000] [1045] Access denied for user ‘magento’@‘localhost’ (using password: YES)

In InstallCommand.php line 274:

Parameter validation failed

I tried below given in the portal but its not working for me.


chmod +x

Once that is completed - I ran the shell script using the following command on the command prompt.

really appreciate if you can provide me workaround for this

I have resolved this issue. looks like there was access issues with DB user. thank you.