I have this problem when i try creatating database with doctrine (symfony 4) in my ubuntu system [closed]

  mysql, symfony4

php bin/console doctrine:database:create

[critical] Error thrown while running command "doctrine:database:create". Message: "An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution"

In AbstractMySQLDriver.php line 112:

An exception occurred in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in n
ame resolution

In Exception.php line 18:

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

In PDOConnection.php line 40:

SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

In PDOConnection.php line 40:

PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

Source: Symfony4 Questions

LEAVE A COMMENT