Skip to content

MySQL binlog location has wrong user #3

Description

@shinguz

Hello Mark

We are currently playing around with Enterprise Docker images.

When I am enabling the binary log outside of datadir (/var/log/mysql) start of container fails with permission denied because directory belongs to user root.
I wanted to use the docker-entrypoint-initdb.d hock but at that stage this is too late.

The last idea is to patch entrypoint.sh and add chown -R mysql: "${MYSQL_BINLOG_DIR}"

I would like to see something like this from upstream.

Regars,
Oli

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions