-
Unknown table 'COLUMN_STATISTICS' in information_schema (1109)Programing/기타 오류 해결 2022. 9. 22. 15:58반응형
AWS RDS에서 운영중인 MySQL DB를 로컬에 export 하려는데 에러가 발생했습니다.
15:38:58 Dumping ProjectDB (all tables) Running: "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqldump.exe" --defaults-file="C:\Users\user\AppData\Local\Temp\tmpfiautq59.cnf" --host=아마존 --port=3306 --default-character-set=utf8 --user=유저 --protocol=tcp --skip-triggers "ProjectDB" mysqldump: Couldn't execute 'SELECT COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') FROM information_schema.COLUMN_STATISTICS WHERE SCHEMA_NAME = 'ProjectDB' AND TABLE_NAME = 'category';': Unknown table 'COLUMN_STATISTICS' in information_schema (1109) Operation failed with exitcode 2 15:38:58 Export of C:\Users\user\Documents\dumps\Dump20220922.sql has finished with 1 errors
검색해보니 예전에는 Workbench의 [Advanced Options]에서 설정할 수 있었지만, 현 버전에서는 해당 기능을 지원하지 않는다고 합니다.
다른 방법을 활용해보겠습니다.
MySQL 5.7 버전 zip파일 다운받기
https://downloads.mysql.com/archives/community/
MySQL :: Download MySQL Community Server (Archived Versions)
Please note that these are old versions. New releases will have recent bug fixes and features! To download the latest release of MySQL Community Server, please visit MySQL Downloads. MySQL open source software is provided under the GPL License.
downloads.mysql.com
MySQL 홈페이지에 들어가서 5.7버전 zip을 다운받고 압축해제합니다.
다운받은 폴더 내에서 mysqldump.exe의 위치를 확인해줍니다.
다운로드폴더에 다운받으셨다면 아래의 위치에 있을겁니다.
C:\Users\user\Downloads\mysql-5.7.38-winx64\mysql-5.7.38-winx64\bin\mysqldump.exe
이 디렉토리 위치를 복사해주세요
기존 workbench의 preferences 변경
[Edit] - [Preferences...]를 눌러서 [Workbench Preferences]창을 띄운 후,
Path to mysqldump Tool에 위에서 복사한 위치를 붙여넣어줍니다.
OK버튼을 누른 뒤 다시한번 export를 시도해보면...
15:48:40 Dumping ProjectDB (all tables) Running: C:\Users\user\Downloads\mysql-5.7.38-winx64\mysql-5.7.38-winx64\bin\mysqldump.exe --defaults-file="C:\Users\user\AppData\Local\Temp\tmptzjh2q_f.cnf" --host=pfdy.cld2apqurd6s.ap-northeast-2.rds.amazonaws.com --port=3306 --default-character-set=utf8 --user=nwrn --protocol=tcp --skip-triggers "ProjectDB" 15:48:41 Export of C:\Users\user\Documents\dumps\Dump20220922.sql has finished
성공적으로 export 했습니다!
반응형'Programing > 기타 오류 해결' 카테고리의 다른 글