How do I install command line MySQL client on mac?

前端 未结 14 2254
失恋的感觉
失恋的感觉 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:10

    Using MacPorts you can install the client with:

    sudo port install mysql57
    

    You also need to select the installed version as your mysql

    sudo port select mysql mysql57
    

    The server is only installed if you append -server to the package name (e.g. mysql57-server)

提交回复
热议问题