📜  如何在 ubuntu 的 phpmyadmin 中导入大的 sql 文件 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:53.686000             🧑  作者: Mango

代码示例2
Try to import it from mysql console as per the taste of your OS.

mysql -u {DB-USER-NAME} -p {DB-NAME} < {db.file.sql path}
or if it's on a remote server use the -h flag to specify the host.

mysql -u {DB-USER-NAME} -h {MySQL-SERVER-HOST-NAME} -p {DB-NAME} < {db.file.sql path}