Error Code: 2013. Lost connection to MySQL server during query

后端 未结 29 2229
深忆病人
深忆病人 2020-11-22 16:22

I got the Error Code: 2013. Lost connection to MySQL server during query error when I tried to add an index to a table using MySQL Workbench. I noticed als

29条回答
  •  情书的邮戳
    2020-11-22 16:33

    There are three likely causes for this error message

    1. Usually it indicates network connectivity trouble and you should check the condition of your network if this error occurs frequently
    2. Sometimes the “during query” form happens when millions of rows are being sent as part of one or more queries.
    3. More rarely, it can happen when the client is attempting the initial connection to the server

    For more detail read >>

    Cause 2 :

    SET GLOBAL interactive_timeout=60;
    

    from its default of 30 seconds to 60 seconds or longer

    Cause 3 :

    SET GLOBAL connect_timeout=60;
    

提交回复
热议问题