Enable binary mode while restoring a Database from an SQL dump

后端 未结 17 1556
耶瑟儿~
耶瑟儿~ 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 15:12

    If you don't have enough space or don't want to waste time in decompressing it, Try this command.

    gunzip < compressed-sqlfile.gz | mysql -u root -p
    

    Don't forget to replace compressed-sqlfile.gz with your compressed file name.

    .gz restore will not work without command I provided above.

提交回复
热议问题