ERROR 2013 (HY000): Lost connection to MySQL server at 'reading authorization packet', system error: 0

前端 未结 11 2355
眼角桃花
眼角桃花 2020-11-30 03:29

I am getting the following error

ERROR 2013 (HY000): Lost connection to MySQL server at 
\'reading authorization packet\', system error: 0

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-30 03:49

    I have a mac but would assume all linux are the same for this part...

    In my case I got this:

    2018-12-03 11:13:27 - Start server: 
    2018-12-03 11:13:27 - Server start done.
    2018-12-03 11:13:27 - Checking server status...
    2018-12-03 11:13:27 - Trying to connect to MySQL...
    2018-12-03 11:13:27 - Lost connection to MySQL server at 'reading authorization packet', system error: 0 (2013)
    2018-12-03 11:13:27 - Assuming server is not running
    

    I ran this:

    sudo killall mysqld
    

    And then started the mysql again through mysqlworkbench although in your case it might be like this:

    mysql.server start
    

    *sidenote: I tried running mysql.server stop and got this Shutting down MySQL .... SUCCESS! but after running ps aux | grep mysql I saw that it hasn't really shut down...

提交回复
热议问题