문제 상황
MySQL Workbench에서 Data export 시 아래와 같은 에러가 발생
에러
Running: mysqldump.exe --defaults-file="c:\users\user\appdata\local\temp\test.cnf" --user=root --host=localhost --protocol=tcp --port=3306 --default-character-set=utf8 --skip-triggers "mydb" mysqldump: Couldn't execute 'SELECT COLUMN_NAME, Operation failed with exitcode 2 20:55:09 Export of C:\Users\user\Documents\dumps\testdb.sql has finished with 1 errors |
해결 방법
- Workbench 버전은 8.0.16
- MariaDB 버전은 10.4
검색해보니 Advanced Options에서 Other/column-statistics 항목의 값을 0으로 세팅하라고 하는데 내 workbench에는 그런 항목 자체가 없었음. 세팅에서 mysqldump를 설정하라고 해서 해결.
- 경로 : workbench 메뉴 -> Edit -> Preferences -> administration -> Path to mysqldump Tool
이 값을 로컬에 설치된 MariaDB의 mysqldump.exe로 설정
- C:\Program Files\MariaDB 10.4\bin\mysqldump.exe
다시 data export를 하니 문제없이 잘 되는 것을 확인하였다.
참고사이트
- https://stackoverflow.com/questions/50803608/cant-export-my-database-from-mysql-workbench
[SQL] Join (조인) - Inner / Outer Join, Left / Right Join (0) | 2019.08.07 |
---|---|
[ERROR] Mybatis mapper 설정 시 - The content of element type "mapper" must match "EMPTY" (0) | 2019.07.25 |
[Maven] Dependency Scope 종류 (0) | 2015.11.23 |
[Maven] Websocket 연동 시 java.lang.ClassCastException 에러 (0) | 2015.11.23 |
[MyBatis] invokeJoinpointUsingReflection 에러 (0) | 2015.06.15 |
댓글 영역