How to import large sql file in phpmyadmin

前端 未结 20 1461
一向
一向 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条回答
  •  臣服心动
    2020-11-29 17:56

    In MAMP, You could load huge files by :

    1. creating a new folder in this directory /MAMP/bin/phpMyAdmin/"folderName"

    2. and then edit "/MAMP/bin/phpMyAdmin/config.inc.php" line 531 :

         $cfg['UploadDir']= 'folderName';   
      
    3. Copy your .sql or .csv Files into this folder.

    4. Now you will have another option in "PhpMyAdmin" : Select from the web server upload directory newFolder/: You could select your file and import it.

      You could load any file now !!

提交回复
热议问题