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 [email protected] --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

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

2 Answers 2

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="[email protected]" --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.

0

You can use this command, I use this personally use this command :

sudo bin/magento setup:install --base-url=http://marketplcae.local --db-host=localhost --db-name=marketplace  --db-user=admin --db-password="admin123" --admin-lastname=zeshan --admin-firstname=shoukat [email protected] --admin-password=admin123  --admin-user=admin  --language=en_US --currency=GBP --timezone=Europe/London

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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