4

I have my nginx running on port 8080 and mysql running on port 3307. I want to install magento 2 cloned from git using CLI. Any idea how to configure the database which will use the port number 3307.

Can I just put --db-host = "localhost:3307"? Will this work for me?

5

http://devdocs.magento.com/guides/v2.2/install-gde/install/cli/install-cli-install.html

--db-host=localhost:3307

Note: You can optionally specify the database server port in its host name like www.example.com:9000

in your case: localhost:3307

| improve this answer | |

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.