Import SQL file into mysql

前端 未结 18 1455
盖世英雄少女心
盖世英雄少女心 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:09

    Export Particular DataBases

     djimi:> mysqldump --user=root --host=localhost --port=3306 --password=test -B CCR KIT >ccr_kit_local.sql
    

    this will export CCR and KIT databases...

    Import All Exported DB to Particular Mysql Instance (You have to be where your dump file is)

    djimi:> mysql --user=root --host=localhost --port=3306 --password=test < ccr_kit_local.sql
    

提交回复
热议问题