Mac install and open mysql using terminal

后端 未结 10 1315
你的背包
你的背包 2021-01-29 19:29

I downloaded the mysql dmg file and went through the wizard to run. Done. I have also started mysql server under system preferences.

The purpose of me doing this is to w

相关标签:
10条回答
  • 2021-01-29 20:05

    try with either of the 2 below commands

    /usr/local/mysql/bin/mysql -uroot
    -- OR --
    /usr/local/Cellar/mysql/<version>/bin/mysql -uroot

    0 讨论(0)
  • 2021-01-29 20:06

    If you have your MySQL server up and running, then you just need a client to connect to it and start practicing. One is the mysql-client, which is a command-line tool, or you can use phpMyAdmin, which is a web-based tool.

    0 讨论(0)
  • 2021-01-29 20:08

    This command works for me:

    Command:

    mysql --host=localhost -uroot -proot
    
    0 讨论(0)
  • This command works for me:

    ./mysql -u root -p
    

    (PS: I'm working on mac through terminal)

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