📜  导入大 sql 文件 phpmyadmin - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:18.045000             🧑  作者: 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}