connect to local MySQL server through socket

前端 未结 6 1960
不知归路
不知归路 2020-12-05 21:01

ERROR 2002 (HY000): Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2)

I tried everything I found o

6条回答
  •  心在旅途
    2020-12-05 21:42

    Your log actually tells you the issue:

    mysqld: Too many arguments (first extra is 'start').

    Just start the daemon without the word 'start'. Instead of:

    sudo /usr/sbin/mysqld start

    it should be just:

    sudo /usr/sbin/mysqld

提交回复
热议问题