title: API-Platform - Switch to mySQL
body: <p>I am trying out API-Platform. I installed the latest version and am running it in Docker on Windows 10. The default db is postgres and want to use MySQL. </p>
  
  <p>I installed the default version with postgres and was able to get it up and running.</p>
  
  <p>I changed the docker-compose.yaml </p>
  
  <pre><code>db:
    image: mysql:8
    environment: 
      - MYSQL_ROOT_PASSWORD=root
      - MYSQL_DATABASE=api
      - MYSQL_USER=api-platform
      - MYSQL_PASSWORD=!ChangeMe!
    volumes:
      - db-data:/var/lib/mysql
    ports:
      - target: 3306
        published: 3306
        protocol: tcp
  </code></pre>
  
  <p>and api/.env </p>
  
  <pre><code>DATABASE_URL=mysql://api-platform:!ChangeMe!@127.0.0.1:3306/api
  </code></pre>
  
  <p>file to use MySQL 8.0. Everything seems to run, but I see in the Docker log </p>
  
  <pre><code>php_1 | Waiting for db to be ready...
  </code></pre>
  
  <p>and when I open up the browser to <a href="https://127.0.0.1:8443" rel="nofollow noreferrer">https://127.0.0.1:8443</a> I get a 502 Bad Gateway.</p>
  
  <p>Any clues to the issue?</p>
  
  <p>Thanks</p>