title: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Hte inconnu
body: <p>A friend give me his project and I wanna execute it in my laptop,</p>
  <p>So after installing all dependencies, I had to configure the DB but I get errors when I run this command</p>
  <pre><code>bin/console doctrine:database:create
  
  
    [Doctrine\DBAL\Exception\ConnectionException]
    An exception occured in driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: H▒te inconnu.
  
    [Doctrine\DBAL\Driver\PDOException]
    SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: H▒te inconnu.
  
    [PDOException]
    SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: H▒te inconnu.
  
    [PDOException]
    PDO::__construct(): php_network_getaddresses: getaddrinfo failed: H▒te inconnu.
  </code></pre>
  <p>if someOne can explain what means this error please?</p>
  <p>My config script:</p>
  <pre><code>doctrine:
      dbal:
          default_connection: default
          connections:
      
  
      default:
          driver:   pdo_mysql
          host:     '%database_host%'
          port:     '%database_port%'
          dbname:   '%database_name%'
          user:     '%database_user%'
          password: '%database_password%'
          charset:  UTF8
          logging:  true
  </code></pre>
  <p>THe content of parameters.yml</p>
  <pre><code>parameters:
      database_host: mysql
      database_port: null
      database_name: symfony
      database_user: root
      database_password: null
      database_version: 5.7
  </code></pre>
  <p>My docker-compose.yml</p>
  <pre><code>version: '2'
  
  services:
    mysql:
      container_name: project_mysql
      image: mysql:5.7.11
      restart: always
      environment:
        MYSQL_ROOT_PASSWORD: root
      volumes:
        - &quot;./.docker-volumes/sqldb:/var/lib/mysql&quot;
        - &quot;./docker/mysql:/home&quot;
      ports:
        - &quot;127.0.0.1:3307:3306&quot;
  </code></pre>