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

前端 未结 11 2376
眼角桃花
眼角桃花 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:44

    I use several mysql connections (connecting to different sets of databases) in localhost.

    This happened to me after I shut my computer down and mysql was not properly shutdown. After starting my machine I was able to successfully connect to multiple db connections except one (I used this a lot before my machine shutdown). As per the instructions in this posts I doubled connect_timeout but I was not able to connect to that one database connection.

    I restarted my machine and i can successfully connect now. This will help you unblock yourself but it'd be great if it can be fixed without restarting the machine.

    Another concern is: connection_timeout seemed to me delay related problem but I was getting the error immediately in localhost when there is no network in the equation.

提交回复
热议问题