Skip to content

Instantly share code, notes, and snippets.

@marcusandre
Last active October 16, 2018 04:42
Show Gist options
  • Save marcusandre/51b66ba4f39f278f299bedaab28c30f9 to your computer and use it in GitHub Desktop.
Save marcusandre/51b66ba4f39f278f299bedaab28c30f9 to your computer and use it in GitHub Desktop.
get mysql config file hierarchy on the system
/usr/sbin/mysqld --verbose --help | grep -A 1 "Default options"
# MySQL systemd service file
[Unit]
Description=MySQL Community Server
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
User=mysql
Group=mysql
PermissionsStartOnly=true
ExecStartPre=/usr/share/mysql/mysql-systemd-start pre
ExecStart=/usr/sbin/mysqld
ExecStartPost=/usr/share/mysql/mysql-systemd-start post
TimeoutSec=600
Restart=on-failure
RuntimeDirectory=mysqld
RuntimeDirectoryMode=755
LimitNOFILE=infinity
LimitMEMLOCK=infinity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment