Enable binary mode while restoring a Database from an SQL dump

后端 未结 17 1680
耶瑟儿~
耶瑟儿~ 2020-12-07 14:41

I am extremely new to MySQL and am running it on Windows. I am trying to restore a Database from a dumpfile in MySQL, but I get the following error:

$ >m         


        
17条回答
  •  悲&欢浪女
    2020-12-07 14:55

    Old but gold!

    On MacOS (Catalina 10.15.7) it was a bit weird: I had to rename my dump.sql into dump.zip and after that, i had to use finder(!) to unzip it. in terminal, unzip dump.zip oder tar xfz dump.sql[or .gz .tar ...] leads to error msgs.

    Finally, finder has unziped it totally fine, after that i could import the file without problems.

提交回复
热议问题