From 4ffafccce9f282d8206ece3534d9d5ff09568761 Mon Sep 17 00:00:00 2001 From: Kenn Wilson Date: Tue, 6 May 2014 08:20:11 -0700 Subject: 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 --- Library/Formula/mysql.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library') 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 #{opt_bin}/mysqld_safe --bind-address=127.0.0.1 + --datadir=#{var}/mysql RunAtLoad -- cgit v1.2.3