How to import large sql file in phpmyadmin

前端 未结 20 1422
一向
一向 2020-11-29 17:04

I want to import a sql file of approx 12 mb. But its causing problem while loading. Is there any way to upload it without splitting the sql file ?

20条回答
  •  -上瘾入骨i
    2020-11-29 17:55

    Ok you use PHPMyAdmin but sometimes the best way is through terminal:

    • Connect to database: mysql -h localhost -u root -p (switch root and localhost for user and database location)
    • Start import from dump: \. /path/to/your/file.sql
    • Go take a coffe and brag about yourself because you use terminal.

    And that's it. Just remember if you are in a remote server, you must upload the .sql file to some folder.

提交回复
热议问题