Skip to content

Instantly share code, notes, and snippets.

@matrixik
Last active October 18, 2016 11:37
Show Gist options
  • Select an option

  • Save matrixik/896d5b5a6064b155b0b2a62f8586c801 to your computer and use it in GitHub Desktop.

Select an option

Save matrixik/896d5b5a6064b155b0b2a62f8586c801 to your computer and use it in GitHub Desktop.
Systemd fix for MariaDB 5.5 with /var/run/mariadb permission denied errors
# Add to {mysqld,mariadb}.service file
ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mariadb
# OR
RuntimeDirectory=mariadb
RuntimeDirectoryMode=755
# Fix in MySQL 5.6:
# https://github.com/dannf/mysql-5.6/commit/9b5b989ff51bf62b0d52b5d87519af683f45ad59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment