Docker - Flyway - Unable create schema <p>I have a huge problem. I have 2 Flyway's services, each service connects to different schema, and a mysql Service. The .yml file looks like:</p> <pre><code>version: '2' services: mysqldb: image: mysql:5.6.26 environment: MYSQL_USER: mialquileruser MYSQL_PASSWORD: password MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: mialquiler ports: - "3306:3306" flyway-service-i: image: mialk/flyway-service volumes: - "../resources/db/migration:/migrations/ro" depends_on: - mysqldb links: - mysqldb command: migrate -url=jdbc:mysql://mysqldb:3306/mialquiler -user=mialquileruser -password=password -schemas=mialquiler -baselineOnMigrate=true -locations='filesystem:/migrations' flyway-post-i: image: mialk/flyway-post-service volumes: - "../../../../postService/src/main/resources/db/migration:/migrations/ro" depends_on: - mysqldb links: - mysqldb command: migrate -url=jdbc:mysql://mysqldb:3306/mialquiler -user=mialquileruser -password=password -schemas=mialquiler_post -baselineOnMigrate=true -locations='filesystem:/migrations' </code></pre> <p><strong>flyway-service-i</strong> connects to mialquiler schema and <strong>flyway-post-i</strong> connects to mialquiler_post schema.</p> <p>When I run the command <strong>sudo docker-compose up</strong>, the <strong>flyway-service-i</strong> is okey, but with <strong>flyway-post-i</strong> I get an error message of <strong>Unable to create schema mialquiler_post</strong>: <a href="https://i.stack.imgur.com/DgLry.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DgLry.png" alt="enter image description here"></a></p> <p>I don't understand why, because I've given grants to that schema to all the hosts: <a href="https://i.stack.imgur.com/yY3rn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yY3rn.png" alt="enter image description here"></a></p> <p>But when I execute a SELECT of the grants of the user of the container, it only shows me one schema, mialquiler schema:</p> <p><a href="https://i.stack.imgur.com/JaaL0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JaaL0.png" alt="enter image description here"></a></p> <p>Why can't it create the mialquiler_post schema? What can I do?</p> <p>This is not duplicate, this is a specific problem.</p>