How do I install command line MySQL client on mac?

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

    If you installed from the DMG on a mac, it created a mysql client but did not put it in your user path.

    Add this to your .bash_profile:

    export PATH="/usr/local/mysql/bin:$PATH
    

    This will let you run mysql from anywhere as you.

提交回复
热议问题