error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' — Missing /var/run/mysqld/mysqld.sock

后端 未结 30 2109
日久生厌
日久生厌 2020-11-22 10:49

My problem started off with me not being able to log in as root any more on my mysql install. I was attempting to run mysql without passwords turned on... but whenever I

30条回答
  •  北海茫月
    2020-11-22 11:28

    I just had this problem on Ubuntu 14.10

    Turns that mysql-server was no longer installed (somehow it had been removed) but I couldn't just install it because there were some broken packages and dependency issues/conflicts.

    In the end I had to reinstall mysql

    sudo apt-get remove mysql-client
    sudo apt-get install mysql-server
    

提交回复
热议问题