title: MYSQL Docker container gives "unknown database" error
body: <p>I'm using a docker container for MySQL with docker-compose that works just fine.</p>
  
  <p>The only problem is that I get the error <code>unknown database "database_name"</code> the first time I run it every day (after Windows startup)</p>
  
  <p>After that, if I stop it and re-run it I get no errors and everything works fine.</p>
  
  <p><strong>yaml configuration:</strong></p>
  
  <pre><code>version: "2.0"
  services:
    mysql:
      container_name: mysql
      restart: always
      image: mysql:5.7
      command: --max_allowed_packet=32505856
      ports:
        - "3306:3306"
      volumes:
        - 'C:\data\mysql_db:/var/lib/mysql/'
      environment:
        MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
      networks:
        - shared
  networks:
    shared: 
      external:
        name: shared
  </code></pre>
  
  <p><strong>EDIT</strong>: here is a pastebin of the logs of a startup: <a href="https://pastebin.com/aJiKJ4aE" rel="nofollow noreferrer">https://pastebin.com/aJiKJ4aE</a></p>