cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 cloud db dump fails - Environment does not have connection `default` associated with db

Magento 2 cloud db dump fails - Environment does not have connection `default` associated with db

I am trying to take dump of Magento cloud DB instance by making use of ECE tools using the following command as suggested in Magento support forum:

 

php vendor/bin/ece-tools db-dump
 
It failed with following error message:
 
In Connection.php line 222:
SQLSTATE[HY000] [2002] No such file or directory
In DumpProcessor.php line 149:
Database configuration does not exist
 
When I tried to specify the database name along with this command
(php vendor/bin/ece-tools db-dump main) I was prompted with the following error:
 
CRITICAL: SQLSTATE[HY000] [2002] No such file or directory
In Connection.php line 222:
SQLSTATE[HY000] [2002] No such file or directory
In DumpProcessor.php line 182:
Environment does not have connection `default` associated with database `main`
 
I want to take the cloud DB dump using ece tool. Could anyone please help me out in finding what is that I am missing here ? Thanks in advance.