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

后端 未结 11 1973
一整个雨季
一整个雨季 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:37

    just type:

    cat *.sql |mysql -uroot -p
    

    and mysql will import all the sql file in sequence

提交回复
热议问题