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

后端 未结 30 2475
日久生厌
日久生厌 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

    This error occurs due to multiple installations of mysql. Run the command:

    ps -A|grep mysql
    

    Kill the process by using:

    sudo pkill mysql
    

    and then run command:

    ps -A|grep mysqld
    

    Also Kill this process by running:

    sudo pkill mysqld
    

    Now you are fully set just run the following commands:

    service mysql restart
    mysql -u root -p
    

    Have very well working mysql again

提交回复
热议问题