How to easily import multiple sql files into a MySQL database?

后端 未结 11 1883
一整个雨季
一整个雨季 2021-01-29 20:02

I have several sql files and I want to import all of them at once into a MySQL database.

I go to PHPMyAdmin, access the databa

11条回答
  •  無奈伤痛
    2021-01-29 20:21

    1. Goto cmd

    2. Type in command prompt C:\users\Usersname>cd [.sql tables folder path ]
      Press Enter
      Ex: C:\users\Usersname>cd E:\project\database

    3. Type command prompt
      C:\users\Usersname>[.sql folder's drive (directory)name]
      Press Enter
      Ex: C:\users\Usersname>E:

    4. Type command prompt for marge all .sql file(table) in a single file
      copy /b *.sql newdatabase.sql
      Press Enter
      EX: E:\project\database>copy /b *.sql newdatabase.sql

    5. You can see Merge Multiple .sql(file) tables Files Into A Single File in your directory folder
      Ex: E:\project\database

提交回复
热议问题