Last active
October 16, 2018 04:42
-
-
Save marcusandre/51b66ba4f39f278f299bedaab28c30f9 to your computer and use it in GitHub Desktop.
get mysql config file hierarchy on the system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/sbin/mysqld --verbose --help | grep -A 1 "Default options" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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