Dump File MySQL 5.6.10

前端 未结 16 2736
天涯浪人
天涯浪人 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 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.

提交回复
热议问题