Maison  >  Article  >  base de données  >  mac homebrew 安装不同的mysql版本_MySQL

mac homebrew 安装不同的mysql版本_MySQL

WBOY
WBOYoriginal
2016-06-01 13:14:212063parcourir

mac homebrew 安装不同的mysql版本

homebrew

reference: http://brew.sh/

安装

1. 搜索不同的mysql版本

$ brew versions mysqlWarning: brew-versions is unsupported and may be removed soon.Please use the homebrew-versions tap instead:https://github.com/Homebrew/homebrew-versions5.6.17 git checkout e271c21 Library/Formula/mysql.rb5.6.16 git checkout 34ad88d Library/Formula/mysql.rb5.6.15 git checkout b8a121e Library/Formula/mysql.rb5.6.14 git checkout dc5d10c Library/Formula/mysql.rb5.6.13 git checkout dcc7f40 Library/Formula/mysql.rb5.6.12 git checkout ed829a3 Library/Formula/mysql.rb5.6.10 git checkout 48f7e86 Library/Formula/mysql.rb5.5.29 git checkout 336c976 Library/Formula/mysql.rb5.5.28 git checkout 5825f62 Library/Formula/mysql.rb5.5.27 git checkout 93aecfa Library/Formula/mysql.rb5.5.25agit checkout faaa6c1 Library/Formula/mysql.rb5.5.25 git checkout 5bcd1f3 Library/Formula/mysql.rb5.5.24 git checkout a977fbd Library/Formula/mysql.rb5.5.20 git checkout f4009ef Library/Formula/mysql.rb5.5.19 git checkout c2b8e87 Library/Formula/mysql.rb5.5.15 git checkout 513c0f8 Library/Formula/mysql.rb5.5.14 git checkout a840c4a Library/Formula/mysql.rb5.5.12 git checkout 35b60ca Library/Formula/mysql.rb5.5.10 git checkout 1f2b24e Library/Formula/mysql.rb5.1.56 git checkout feae63a Library/Formula/mysql.rb5.1.55 git checkout 0476235 Library/Formula/mysql.rb5.1.54 git checkout 7077f84 Library/Formula/mysql.rb5.1.53 git checkout fbee3a0 Library/Formula/mysql.rb5.1.52 git checkout 7871a99 Library/Formula/mysql.rb5.1.51 git checkout 0fc5ce3 Library/Formula/mysql.rb5.1.49 git checkout 2e7d624 Library/Formula/mysql.rb5.1.48 git checkout 75def21 Library/Formula/mysql.rb5.1.47 git checkout 9d73887 Library/Formula/mysql.rb5.1.46 git checkout ee9ecec Library/Formula/mysql.rb5.1.45 git checkout 1ca6b6b Library/Formula/mysql.rb5.1.44 git checkout 052d1f2 Library/Formula/mysql.rb5.1.43 git checkout c4decd7 Library/Formula/mysql.rb
$ cd /usr/local/Library/Formula/$ git checkout 35b60ca mysql.rb

3. 安装

$ brew install mysql# 安装完成后重新checkout 到master

方法二:

$ brew search mysqlautomysqlbackup		mysql			mysql-cluster		mysql-connector-c++		mysql-proxygroonga-normalizer-mysqlmysql++			mysql-connector-c		mysql-connector-odbc		mysqlreporthomebrew/versions/mysql51	 homebrew/php/php53-mysqlnd_ms	homebrew/php/php55-mysqlnd_mshomebrew/versions/mysql55	 homebrew/php/php54-mysqlnd_ms	homebrew/php/php56-mysqlnd_ms$ brew install mysql55
Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn