How can I import a database with MySQL from terminal?

后端 未结 18 1348
盖世英雄少女心
盖世英雄少女心 2020-11-27 09:14

How can I import a database with mysql from terminal?

I cannot find the exact syntax.

18条回答
  •  一向
    一向 (楼主)
    2020-11-27 09:32

    in the terminal type

    mysql -uroot -p1234; use databasename; source /path/filename.sql
    

提交回复
热议问题