How to Import 1GB .sql file to WAMP/phpmyadmin

前端 未结 13 2037
旧巷少年郎
旧巷少年郎 2020-12-04 09:46

I want to import over 1GB size sql file to MySQL database in localhost WAMP/phpmyadmin. But phpmyadmin UI doesn\'t allow

13条回答
  •  长情又很酷
    2020-12-04 10:18

    Step 1: Find the config.inc.php file located in the phpmyadmin directory. In my case it is located here:

    C:\wamp\apps\phpmyadmin3.4.5\config.inc.php 
    

    Note: phymyadmin3.4.5 folder name is different in different version of wamp

    Step 2: Find the line with $cfg['UploadDir'] on it and update it to:

    $cfg['UploadDir'] = 'upload';
    

    Step 3: Create a directory called ‘upload’ within the phpmyadmin directory.

    C:\wamp\apps\phpmyadmin3.2.0.1\upload\
    

    Step 4: Copy and paste the large sql file into upload directory which you want importing to phymyadmin

    Step 5: Select sql file from drop down list from phymyadmin to import.

提交回复
热议问题