can't access mysql from command line mac

前端 未结 7 1246
情话喂你
情话喂你 2020-11-30 21:20

mysql on os x 10.6 is located in /usr/local/mysql/bin/mysql

I get command not found when I type mysql --version in the terminal. Is this be

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 21:34

    On mac, open the terminal and type:

    cd /usr/local/mysql/bin

    then type:

    ./mysql -u root -p

    It will ask you for the mysql root password. Enter your password and use mysql database in the terminal.

提交回复
热议问题