Dump File MySQL 5.6.10

前端 未结 16 2740
天涯浪人
天涯浪人 2020-12-25 10:25

I was trying to create a dump file from my MySQL database, but when I try it always gives me this error

Operation failed with exitcode 2

相关标签:
16条回答
  • 2020-12-25 10:57

    If you're on a linux machine, this is provided by the mysql-client package. Installing that fixed the problem for me.

    0 讨论(0)
  • 2020-12-25 11:00

    You are probably using Amazon RDS, right? You can just get the newer version of mysqldump, v5.6 and use it instead.

    Download the portable zip here and extract just the mysql\mysqldump.exe there. http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/1.8.3/

    I tried it just now and it worked fine for me.

    0 讨论(0)
  • 2020-12-25 11:02

    The reason for this is that MySQL 5.6 has removed support for "SET OPTION" and your mysql client tools are probably on older version. Most likely 5.5 or 5.1. There is more info about this issue on MySQL bugs website.

    The quickest solution is to update your mysql client tools to 5.6 and your problem will be solved. If you are on Linux platform, here is a solution that worked great for me: http://www.markomedia.com.au/mysqldump-mysql-5-6-problem-solved/

    0 讨论(0)
  • 2020-12-25 11:03

    I had this problem on the Amazon EC2 acessing a RDS Mysql 5.6 database. I just ran

    sudo apt-get upgrade

    It didn't update mysql client to 5.6, but mysqldump now is working fine.

    0 讨论(0)
  • 2020-12-25 11:03

    I just had the same problem and I put a couple of different answers together.

    The pro for me was, that I could switch easily between 5.6, 8, ... without having to up/downgrade ubuntu dependencies each time.

    The easiest way for me on Ubuntu was to just download the 5.6 (or 5.7, whatever you want) mysqldump binary and change that in workbench. Everything went well after that:

    1. go to https://downloads.mysql.com/archives/community/ and download the correct version you want (for me: 5.6.47 for 64x)
    2. Unpack the archive somewhere, you can find later
    3. Change the mysqldump binary in mysql workbench: Edit -> Preferences -> Administrator -> "Path to mysqldump Tool" to {{YOUR_UNPACKED_FOLDER}}/bin/mysqldump
    4. Save it with Ok

    Now you should be able to just export and it will use mysqldump 5.x.

    0 讨论(0)
  • 2020-12-25 11:05

    I had the same error in MySQL Workbench.

    1. Find out where is the mysqldump tools provided by your install of MySQL 5.6. On my mac it was at "usr/local/mysql-5.6.10-osx10.7-x86_64/bin/mysqldump".
    2. Then I set up this path in MySQL Workbench/Preferences/Administrator/Path to mysqldump Tool
    3. Give MySQL Workbench a restart.

    It should work.

    0 讨论(0)
提交回复
热议问题