Logs
[Error] Operation failed: There was an error while applying the SQL script to the database. ERROR 2013: Lost connection to MySQL server during query 에러 해결하는 법
랩실외톨이
2023. 2. 22. 16:15
반응형
플젝을 하다가 난생처음 보는 에러가 발생했다.
Operation failed: There was an error while applying the SQL script to the database.
ERROR 2013: Lost connection to MySQL server during query
이 에러는 MySQL Workbench에서 쿼리 돌리는 시간이 오래 걸려서 정해진 제한 시간 동안 쿼리가 종료되지 못해 발생한 에러라고 한다.
더미데이터를 약 40만개 넣어뒀더니 저런 에러를 만나버렸다.
해결법:
MySQL Workbench에서
Edit > Preferences > SQL Editor 로 이동
MySQL Session 밑에
DBMS connection keep-alive interval(in seconds):
DBMS connection read timeout interval(in seconds):
의 값들을 사진과 같이 늘려주면 해결된다.
반응형