How do I install command line MySQL client on mac?

前端 未结 14 2236
失恋的感觉
失恋的感觉 2020-12-22 15:58

I want to install the MySQL client for the command line, not a GUI. I have searched over the web but only found instructions on installing the MySQL server.

14条回答
  •  盖世英雄少女心
    2020-12-22 16:25

    As stated by the earlier answer you can get both mysql server and client libs by running

    brew install mysql.

    There is also client only installation. To install only client libraries run

    brew install mysql-connector-c

    In order to run these commands, you need homebrew package manager in your mac. You can install it by running

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

提交回复
热议问题