cancel
Showing results for 
Search instead for 
Did you mean: 

php bin/magento setup:upgrade SHOW ERROR : Connection "default" is not defined

php bin/magento setup:upgrade SHOW ERROR : Connection "default" is not defined

I am setup a project

I run setup:upgrade command.

This is show an error : Connection "default" is not defined

2 REPLIES 2

Re: php bin/magento setup:upgrade SHOW ERROR : Connection "default" is not defined

Hello @5ce977e725cf4 

 

Check that you have an env.php file in your app/etc folder and that your DB details are defined correctly.

 

Thanks

Problem solved? Click Accept as Solution!

Re: php bin/magento setup:upgrade SHOW ERROR : Connection "default" is not defined

Hi @5ce977e725cf4 ,

 

Open app/env.php just changed 'connection' => 'default'

Try setup:upgrade again.

 

Problem Solved? Accept as Solution!

 

Hope it helps!

Thanks

 

Ankit Jasani