Skip to content

How to run a script every started? #786

Closed
@zhangguanzhang

Description

@zhangguanzhang

There are inexplicable permissions problems in some environments. I want to execute chown before the mysqld process to fix these problems. How could I use the root user to run the script, :

chown -R mysql:mysql /var/log/mysql  /var/run/mysql /var/lib/mysql
chmod 1777 /tmp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions