aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorKenn Wilson2014-05-06 08:20:11 -0700
committerJack Nagel2014-05-08 22:07:49 -0500
commit4ffafccce9f282d8206ece3534d9d5ff09568761 (patch)
tree0d49a962d326d35b26654b7c083090ef2078c2d4 /Library
parent39514227625b18d89b02920709dd31e611563e1d (diff)
downloadhomebrew-4ffafccce9f282d8206ece3534d9d5ff09568761.tar.bz2
mysql: add datadir argument to mysqld_safe command
This addresses a potential issue where MySQL may not load databases upon first starting after a system reboot. Copied from an identical fix required for MariaDB, where this behavior was first noticed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mysql.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb
index d4ff6ecc7..0ee965ef6 100644
--- a/Library/Formula/mysql.rb
+++ b/Library/Formula/mysql.rb
@@ -157,6 +157,7 @@ class Mysql < Formula
<array>
<string>#{opt_bin}/mysqld_safe</string>
<string>--bind-address=127.0.0.1</string>
+ <string>--datadir=#{var}/mysql</string>
</array>
<key>RunAtLoad</key>
<true/>