mysqldump 오류 해결 (Unknown table 'COLUMN_STATISTICS' in information_schema (1109))

정현섭·2021년 4월 29일
0
post-thumbnail

배경

mysqldump로 다른 서버에 있는 db를 backup하던 중 에러가 났다.

Unknown table 'COLUMN_STATISTICS' in information_schema (1109)

이렇게 오류 메세지가 나와도 backup.sql 은 생기지만

중간에 끊긴 sql이라서 사용할 수 없다.

해결법

원인

MySQL 8.xx Client에서 MySQL 5.xx 데이터 베이스를 덤프할 때 나는 에러였다.

mysqldump에서 --column-statistics=0 옵션을 추가하면 해결된다!

0개의 댓글