I need to setup live magento2 site on local host, below are the steps I am following.

  1. Clone and downloaded the files from cloud.

  2. Created and downloaded the database dump.

  3. Placed the files in htdocs/magento_test directory

  4. Used command "Composer Install" to get the Vendor and other files

  5. Created a local database and uploaded the db dump in there.

  6. Changed the urls in core_config_data to localhost

  7. Now running site in browser throw this ERROR "An error has happened during application run. See exception log for details."

Log in exception log file- [2020-09-29 13:05:06] report.CRITICAL: MySQL adapter: Missing required configuration option 'host' {"exception":"[object] (InvalidArgumentException(code: 0): MySQL adapter: Missing required configuration option 'host' at C:\xampp\htdocs\magento_test\vendor\magento\framework\Model\ResourceModel\Type\Db\Pdo\Mysql.php:105)"}

Please help me to resolve this issue.

  • did you made changes to env.php? – SebastianT Sep 30 '20 at 21:27

Your Answer

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

Browse other questions tagged or ask your own question.