Programing

mysql Workbench 6.0에서 데이터 내보내기

lottogame 2020. 8. 22. 11:29
반응형

mysql Workbench 6.0에서 데이터 내보내기


Windows에서 MySQL Workbench 6.0을 사용하여 Amazon RDS의 db 인스턴스로 보내기 위해 데이터베이스를 내보내려고하는데이 오류가 발생합니다.

Operation failed with exitcode 7
11:34:40 Dumping clubbin (taxicompanies)
Running: "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqldump.exe"
-defaults-extra- file="c:\users\selene\appdata\local\temp\tmp6o0hno.cnf"
--max_allowed_packet=1G --delayed-   insert=FALSE --host=localhost --user=root
--port=3306 --default-character-set=utf8 "clubbin"   "taxicompanies"
mysqldump: [ERROR] unknown variable 'delayed-insert=FALSE'

아무도 나를 도울 수있는 아이디어가 있습니까?


mysqldump : [오류] 알 수없는 변수 'delayed-insert = FALSE'


이 오류는 다양한 시스템에서 발생하며 다음을 통해 일시적으로 수정할 수 있습니다.

  1. 시스템에 따라 적절한 디렉토리로 이동 :

    A) 윈도우 : C:\Program Files\MySQL\MySQL Workbench 6.3 CE\modulesx64 시스템에서 (32 비트 설치 : C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules)

    b) Mac OS X : Applications/MYSQLWorkbench.app/Contents/Resources/plugins-앱을 마우스 오른쪽 버튼으로 클릭하고 패키지 콘텐츠 표시를 선택하여 앱 내부로 이동합니다 ( Bradley Flood 덕분에 ).

    c) Linux Ubuntu : /usr/lib/mysql-workbench/modules( Alessandro Lopes 에게 감사드립니다 )

  2. 파일 열기 wb_admin_export_options.py

  3. 라인 찾기 "delayed-insert":["Write INSERT DELAYED statements rather than ...

  4. #이 줄의 시작 부분에 삽입 하여 주석 처리하십시오.

  5. 파일을 저장하고 Workbench를 다시 시작하십시오.


Windows 7 x64, MySQL 5.6.27 (MyISAM) 및 Workbench 6.3.5 x64에서 테스트되었습니다.

OSX Yosemite 10.10.4, MySQL 5.5.27 (MyISAM), Workbench 6.3.5 빌드 201 CE x64에서 테스트되었습니다.


이것은 나를 위해 일했습니다.

C : \ Program Files \ MySQL \ MySQL Workbench 6.3 CE \ modules \ wb_admin_export_options.py 파일을 편집합니다 (편집기를 관리자로 열어야 함).

줄 찾기 :

delayed-insert ": ["INSERT 문 대신 INSERT DELAYED 문을 작성합니다. ","FALSE ","BOOL ", ("5.0.0 ","5.7.0 ")],

다음과 같이 줄 시작 부분에 해시 "#"을 입력합니다.

# delayed-insert ": ["INSERT 문 대신 INSERT DELAYED 문을 작성합니다. ","FALSE ","BOOL ", ("5.0.0 ","5.7.0 ")],

그러면 Workbench가이 문을 사용하지 않도록 줄을 주석 처리합니다.

파일을 저장하고 닫습니다.

Workbench를 시작하고 다시 시도하십시오.

참조 http://dannytsang.co.uk/mysql-workbench-error-code-7/


Linux Ubuntu / Mint :

설정 파일은 /usr/lib/mysql-workbench/modules/wb_admin_export_options.py에 있습니다.

c4pricorn에 설명 된대로 "delayed-insert": [ "Write INSERT DELAYED statements instead ...

그리고 워크 벤치를 다시 시작하십시오.


5.6에서 더 이상 사용되지 않고 5.7에서 일반 삽입으로 변환되는 지연된 삽입 ( http://dev.mysql.com/doc/refman/5.7/en/insert-delayed.html 참조 ). mysqldump가 이것에 대해 오류를보고하는 이유가 궁금합니다. 그럼에도 불구하고 MySQL Workbench는 delayed-insert덤프를 사용하지 않도록 조정해야 합니다. http://bugs.mysql.com 에서 버그 보고서를 제출하여 MySQL Workbench 용 agenta에이를 가져올 수 있습니까?


CentOS 7에서

파일 열기 /usr/lib64/mysql-workbench/modules/wb_admin_export_options.py 줄 찾기 "delayed-insert": [ "... 대신 INSERT DELAYED 문을 작성하십시오 ...이 줄의 시작 부분에 #을 삽입하여 주석 처리 파일을 저장하고 Workbench를 다시 시작하십시오.


As highlighted at an earlier post, by putting a # at the delayed-insert line in wb_admin_export_options.py does solves the problem.What i like to add is that when i tried to edit it in notepad and Pythonwin,i encountered the admin rights issue.They don't let me save the file after my edit.I finally work around it by editing and saving it in notepad++.One can download it from here https://notepad-plus-plus.org/


Removing delayed-insert line in wb_admin_export_options.py solves the problem. You need to get admin rights to modify the file.

Nonetheless consider that your MySQL database might have been not properly upgraded before.


Be careful on editor: on Win7 64 notepad doesn't work on this modification. Notepad will present a single line, use an editor with crlf.


I had this error until I upgraded to the latest version. Currently 8.0.15. That fixed it on my Mac.

참고URL : https://stackoverflow.com/questions/20128223/export-data-from-mysql-workbench-6-0

반응형