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

前端 未结 13 2017
旧巷少年郎
旧巷少年郎 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:33

    You can do it in following ways;

    1. You can go to control panel/cpanel and add host % It means now the database server can be accessed from your local machine. Now you can install and use MySQL Administrator or Navicat to import and export database with out using PHP-Myadmin, I used it several times to upload 200 MB to 500 MB of data with no issues

    2. Use gzip, bzip2 compressions for exporting and importing. I am using PEA ZIP software (free) in Windows. Try to avoid Winrar and Winzip

    3. Use MySQL Splitter that splits up the sql file into several parts. In my personal suggestion, Not recommended

    4. Using PHP INI setting (dynamically change the max upload and max execution time) as already mentioned by other friends is fruitful but not always.

提交回复
热议问题