Install Magento 2 on different mysql port
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