Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

前端 未结 7 1040
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 02:30

I am trying to run mysql client on my terminal. I have installed the latest mysql gem.

 ➜  ~ git:(master) ✗ ruby -v
    ruby 1.8.7 (2010-01-10 patchlevel 24         


        
相关标签:
7条回答
  • 2020-12-13 03:01

    You need to follow the directions to install and start the server.

    The command varies depending on how you installed MySQL. Try this first:

    sudo /Library/StartupItems/MySQLCOM/MySQLCOM start

    If that fails:

    cd /usr/local/mysql
    sudo ./bin/mysqld_safe
    (Enter your password, if necessary)
    (Press Control-Z)
    bg

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