What is the easy way to import large database to mysql using phpmyadmin?

前端 未结 4 734
后悔当初
后悔当初 2020-12-21 02:42

I need to import an database(sql file) which is about 120M is size, but in phpmyAdmin, it is not allowed to import more than 8 MB.

How to solve this?

4条回答
  •  太阳男子
    2020-12-21 03:40

    I have solved this in three ways in the past, here are the solutions in order of simplicity:

    1) Increase the upload limit. Ask your host to allow you to upload larger files to the server (specifically the post_max_size and upload_max_filesize variables), probably best that they do this in phpMyAdmin's .htaccess file.

    2) Upload via FTP. PHPMyAdmin supports uploading of SQL files via FTP but your host needs to configure the "UploadDir" setting.

    3) Use a different import process. BigDump is the best for this. The problem is that it does still refuses to import some files because of the number of SQL lines or other errors, plus you have to configure it for each site/database.

提交回复
热议问题