Import SQL file into mysql

前端 未结 18 1432
盖世英雄少女心
盖世英雄少女心 2020-11-28 00:16

I have a database called nitm. I haven\'t created any tables there. But I have a SQL file which contains all the necessary data for the database. The file is

18条回答
  •  抹茶落季
    2020-11-28 01:17

    mysql>c:/nitm.sql;
    

    That would write the output of the mysql command to 'nitm.sql;' (What's the ';' supposed to do?) Assuming you've got a copy of the original file (before you overwrote it) then:

    mysql < c:/nitm.sql
    

提交回复
热议问题