can't access mysql from command line mac

前端 未结 7 1146
情话喂你
情话喂你 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条回答
  • 2020-11-30 21:50

    I think this is the more simpler approach:

    1. Install mySQL-Shell package from mySQL site
    2. Run mysqlsh (should be added to your path by default after install)
    3. Connect to your database server like so: MySQL JS > \connect --mysql [username]@[endpoint/server]:3306
    4. Switch to SQL Mode by typing "\sql" in your prompt
    5. The console should print out the following to let you know you are good to go:

    Switching to SQL mode... Commands end with ;

    Go forth and do great things! :)

    0 讨论(0)
提交回复
热议问题