1

sudo ./magento setup:install --base-url=http://127.0.0.1:8500 --db-host=localhost --db-name=magento2 --db-user=root --db-password=1234 --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

After running above command it shows following error

SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client

[InvalidArgumentException] Parameter validation failed

  • did you use correct DB password at --db-password? – kunj Aug 21 '18 at 10:41
  • 1
    yes i can establish connection via mysql workbench as well as from terminal @kunj – Nikhil Mahtre Aug 21 '18 at 10:48
0

Can you try this one?

sudo ./magento setup:install --base-url="http://127.0.0.1:8500" --db-user="root" --db-password="1234" --db-host="localhost" --db-name="magento2" --admin-firstname="admin" --admin-lastname="admin" --admin-email="admin@admin.com" --admin-user="admin" --admin-password="admin123" --backend-frontname="admin" --language="en_US" --currency="USD" --timezone="America/Chicago" --use-rewrites="1"

This is the one which works for me, hopefully it will work for you too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.