본문 바로가기
서버인프라/데이터베이스

lock tables 오류

by techwold ted 2022. 10. 27.

mysqldump시 아래와 같은 오류를 만나곤 합니다.

이럴때 --lock-all-table 을 추가하여 mysqldump를 해주시면 좋은 결과를 얻을 수도 있습니다.

mysqldump: got errer : 1146 : table 테이블명 doesn't exist when using LOCK TABLES

mysqldump -u root -p --lock-all-table --all-databases > all.sql

댓글