# Could not connect to database during installation

**URL:** <https://forum.shopware.com/t/could-not-connect-to-database-during-installation/87838>\
**Category:** Shopware 6 (English)\
**Tags:** installation--gettin, programming\
**Created:** [23. Mai 2021 um 10:36 UTC](https://forum.shopware.com/t/could-not-connect-to-database-during-installation/87838 "2021-05-23T10:36:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anitchec.dev](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@anitchec.dev](https://forum.shopware.com/u/anitchec.dev)\
**Post date:** [23. Mai 2021 um 10:36 UTC](https://forum.shopware.com/t/could-not-connect-to-database-during-installation/87838/1 "2021-05-23T10:36:49Z")

</div>

`./psh.phar install` fails at line 15 of `dev-ops/common/action/install.sh` with the following error message:

```auto
    (32/42) Starting
bin/console assets:install
	
	In AbstractMySQLDriver.php line 112:
	                                                                                                                                              
	  An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution  
	                                                                                                                                              
	
	In Exception.php line 18:
	                                                                                                             
	  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution  
	                                                                                                             
	
	In PDOConnection.php line 38:
	                                                                                                             
	  SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution  
	                                                                                                             
	
	In PDOConnection.php line 38:
	                                                                                                          
	  PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution  
	                                                                                                          
	
	
Execution aborted, a subcommand failed!

```

Am using docker.
