OSX installer now does not assume mysql will always be v5.5.10.
This commit is contained in:
parent
e9b4257a22
commit
e41c8f5887
1 changed files with 2 additions and 1 deletions
|
|
@ -55,7 +55,8 @@ task :install do
|
|||
system("unset TMPDIR")
|
||||
system("sudo mysql_install_db --verbose --user=`whoami` --basedir=\"$(brew --prefix mysql)\" --datadir=/usr/local/var/mysql --tmpdir=/tmp")
|
||||
system("mkdir -p ~/Library/LaunchAgents")
|
||||
system("cp /usr/local/Cellar/mysql/5.5.10/com.mysql.mysqld.plist ~/Library/LaunchAgents/")
|
||||
plist_file = `brew list mysql | grep plist`.strip
|
||||
system("cp #{plist_file} ~/Library/LaunchAgents/com.mysql.mysqld.plist")
|
||||
system("launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist")
|
||||
end
|
||||
puts 'mysql is installed. Great job!'
|
||||
|
|
|
|||
Loading…
Reference in a new issue