简体   繁体   English

使用自制软件安装 MySQL 是否包括工作台和 GUI(是否首选安装本机)?

[英]Does installing MySQL with homebrew include the Workbench and GUI (is it preferred to install native)?

Does installing MySQL with homebrew include MySQL workbench and GUI as if you were to run the Native installer (to be able to start and stop services)?使用自制软件安装 MySQL 是否包括 MySQL 工作台和 GUI,就像您要运行本机安装程序(以便能够启动和停止服务)一样? I am trying to decide whether it is better to install using homebrew or with native.我正在尝试决定使用自制软件还是使用本机安装更好。

homebrew mysql does not contain mysqlworkbench.自制 mysql 不包含 mysqlworkbench。 Mysqlworkbench is another recipe that it is not exactly in homebrew but in homebrew cask (manager for GUI installs). Mysqlworkbench 是另一个配方,它不完全在自制软件中,而是在自制软件桶中(用于 GUI 安装的管理器)。

For GUI installs and 'other licence' installs there is a homebrew related package manager called homebrew cask.对于 GUI 安装和“其他许可证”安装,有一个名为 homebrew cask 的自制软件相关包管理器。

You can find the caskroom recipes from homebrew,你可以找到自制的木桶食谱,

$ brew search mysql
automysqlbackup
mysql ✔
mysql++
mysql-cluster
mysql-connector-c
mysql-connector-c++
mysql-sandbox
mysql-search-replace
mysqltuner              
homebrew/php/php53-mysqlnd_ms
homebrew/php/php55-mysqlnd_ms
homebrew/versions/mysql51
homebrew/versions/mysql56
Caskroom/cask/mysqlworkbench                 
homebrew/php/php54-mysqlnd_ms
homebrew/php/php56-mysqlnd_ms
homebrew/versions/mysql55
Caskroom/cask/mysql-utilities
Caskroom/cask/navicat-for-mysql 

but for install them you need to install cask.但是要安装它们,您需要安装木桶。

brew tap caskroom/cask
brew cask search mysql
brew cask install mysqlworkbench

The workbench is installed in /opt so unless the installer makes an alias to Applications you are not going to find it easily.工作台安装在 /opt 中,因此除非安装程序为应用程序设置别名,否则您不会轻易找到它。

NOTE: As of March 2018, the brew installer does make an alias to the Applications folder, so no further action is required.注意:截至 2018 年 3 月,brew 安装程序确实为 Applications 文件夹创建了别名,因此无需进一步操作。

If you are unable to see it in the Applications folder, you should follow the following:如果您无法在 Applications 文件夹中看到它,则应遵循以下操作:

In my installation the mysqlworkbench was not aliased to /Applications, but in the workbench folder there is a symlink to the Application folder so it is easy to create the link yourself.在我的安装中,mysqlworkbench 没有别名为 /Applications,但在 workbench 文件夹中有一个指向 Application 文件夹的符号链接,因此很容易自己创建链接。

$ ll /opt/homebrew-cask/Caskroom/mysqlworkbench/6.3.6
total 224
lrwxr-xr-x  1 pmg  staff      14 31 Jan 11:55 Applications -> /Applications/
drwxr-xr-x  3 pmg  staff     102 10 Dec 14:55 MySQLWorkbench.app
-rw-r--r--@ 1 pmg  staff  107640 10 Dec 14:55 background.tiff

make the alias做别名

cd /opt/homebrew-cask/Caskroom/mysqlworkbench/6.3.6/
ln -s MySQLWorkbench.app Applications

You can run the application now from Apps您现在可以从 Apps 运行该应用程序

The Homebrew install does not include Workbench. Homebrew 安装不包括 Workbench。 The download and install of Workbench on OSX is pretty painless (a download and copy - no installer).在 OSX 上下载和安装 Workbench 非常轻松(下载和复制 - 无需安装程序)。

Here is some nice info on using Homebrew to install mysql http://blog.joefallon.net/2013/10/install-mysql-on-mac-osx-using-homebrew/这里有一些关于使用 Homebrew 安装 mysql 的不错信息http://blog.joefallon.net/2013/10/install-mysql-on-mac-osx-using-homebrew/

First of all you need to know what versions are available for mysql首先你需要知道mysql有哪些版本

  • brew search mysql酿造搜索mysql

You get to know know the versions as it will display from after execution above command .For example i get this in console mysql@5.6 ,there may have multiple versions so choose accordingly.您将了解版本,因为它会在执行上述命令后显示。例如,我在控制台 mysql@5.6 中得到这个,可能有多个版本,因此请相应地选择。 Then execute below command然后执行下面的命令

  • brew install mysql@5.6酿造安装mysql@5.6

After installing mysql start the services of mysql using below command安装 mysql 后,使用以下命令启动 mysql 的服务

  • brew services start mysql@5.6 brew 服务启动 mysql@5.6

After the services has started successfully install mysqlworkbench using below command服务启动成功后,使用以下命令安装 mysqlworkbench

  • brew cask install mysqlworkbench酿造桶安装mysqlworkbench

For udate对于日期

  • brew upgrade mysqlworkbench酿造升级mysqlworkbench

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM