[筆記] MySql Workbench 匯出表結構和資料報錯 mysqldump: [ERROR] unknown variable 'delayed-insert=FALSE'

來源:互聯網
上載者:User

標籤:

下午使用MySql Workbench匯出資料庫表結構,設定完匯出選項後執行匯出,報如下錯誤:

16:22:40 Dumping nacweixindb (tb_app)Running: mysqldump.exe --defaults-file="c:\users\admini~1\appdata\local\temp\tmpswfutq.cnf"  --delayed-insert=FALSE 
--host=localhost --protocol=tcp --user=root --port=3306 --default-character-set=utf8
--single-transaction=TRUE --skip-triggers "test_db"mysqldump: [ERROR] unknown variable ‘delayed-insert=FALSE‘Operation failed with exitcode 716:22:41 Export of C:\Users\Administrator\Documents\dumps\Dump20160720-2.sql has finished with 1 errors

多次執行匯出操作無果,於是開始google,終於到mysql bug list中找到

Bug #71811 Workbench can‘t create a Single Transaction dump

 

解決方案:

1、找到Workbench安裝目錄,開啟檔案夾C:\Program Files (x86)\MySQL\MySQL Workbench 6.3 CE\modules;

2、在modules檔案夾中找到python檔案wb_admin_export_options.py;

3、注釋第29行代碼,如下:   

# Copyright (c) 2007, 2015, Oracle and/or its affiliates. All rights reserved.## This program is free software; you can redistribute it and/or# modify it under the terms of the GNU General Public License as# published by the Free Software Foundation; version 2 of the# License.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA# 02110-1301  USAexport_options = {#     "Tables":{#     "no-create-info":["Do not write CREATE TABLE statements that re-create each dumped table.","FALSE"],#     "skip-triggers":["Do not dump triggers", "FALSE"]#     },#    "Databases":{#    "add-drop-database":["Add a DROP DATABASE statement before each CREATE DATABASE statement.","FALSE"],#    "no-create-db":["This option suppresses the CREATE DATABASE statements.","FALSE"]#    },    "Inserts":{    "extended-insert":["Use multiple-row INSERT syntax that include several VALUES lists.","TRUE"],    "delayed-insert":["Write INSERT DELAYED statements rather than INSERT statements.","FALSE", "BOOL", ("5.0.0", "5.7.0")],#   "add-locks":["Surround each table dump with LOCK TABLES and UNLOCK TABLES statements.","TRUE"],    "replace":["Write REPLACE statements rather than INSERT statements.","FALSE"],    "insert-ignore":["Write INSERT IGNORE statements rather than INSERT statements.","FALSE"],    "complete-insert":["Use complete INSERT statements that include column names.","FALSE"]    },    "SQL":{    "create-options":["Include all MySQL-specific table options in CREATE TABLE statements.","TRUE"],    "quote-names":["Quote identifiers within backtick characters.","TRUE"],    "allow-keywords":["Allow creation of column names that are keywords.","FALSE"]    },    "Other":{

4、儲存檔案, 重啟Workbench即可正常匯出資料庫庫。

 

原文地址:

https://bugs.mysql.com/bug.php?id=71811

http://www.serveradminblog.com/2015/12/unable-to-export-database-in-mysql-workbench/

 

[筆記] MySql Workbench 匯出表結構和資料報錯 mysqldump: [ERROR] unknown variable 'delayed-insert=FALSE'

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.