簡體   English   中英

通過 brew 安裝了 mysql 但終端找不到它。 在 macos 上別名的正確方法是什么?

[英]Installed mysql via brew but terminal can't find it. What's the proper way to alias it on a macos?

macOS 10.12.6

通過 brew 安裝 mysql

mysql 文件位於 /usr/local/Cellar/mysql\\@5.7/5.7.24/bin

從命令行和 bash 使這些可用的正確方法是什么?

謝謝!

您的問題的解決方案是使用以下命令給出的:

brew info mysql@5.7

其中指出:

If you need to have mysql@5.7 first in your PATH run:
echo 'export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"' >> ~/.bash_profile

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM