Skip to content

Errors executing docker-entrypoint-initdb.d files are ignored #864

@cer

Description

@cer

I had a typo in a file:

[Entrypoint] running /docker-entrypoint-initdb.d/5.configure-users.sql
ERROR 1064 (42000) at line 3: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"' at line 1

[Entrypoint] running /docker-entrypoint-initdb.d/tram-saga-schema.sql

The server (mysql/mysql-server:8.0.27-1.2.6-server) ignored the error and executed the next file.
It would be helpful if the such an error resulted in the server shutting down.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions