How to import table in phpmyadmin? I got error of file size

后端 未结 11 1818
借酒劲吻你
借酒劲吻你 2021-02-04 02:39

I want to import database in phpmyadmin but i got error like this... \"No data was received to import. Either no file name was submitted, or the file size exceeded the maximum s

11条回答
  •  天涯浪人
    2021-02-04 03:12

    You need to make sure that your file size options are set to suitable values in the correct file. On my system there are 3 files called php.ini inside /etc/php/7.0 (Linux Mint 18.1 Cinnamon) but only one of them is being used.

    The instructions here tell you how to find which file to edit:

    Create a file var/www/html/phpinfo.php. Paste this code into it and save it:

    
    

    Then in a browser navigate to http://localhost/phpinfo.php

    This displays your php configuration, look for the option "Loaded Configuration File", it should be near the top of the page. This will give you the location of your php.ini file, on my system it's /etc/php/7.0/apache2/php.ini

    Now open that file (don't forget to open it as root so you can save changes) and increase the allowed file size to a value larger than your sql file, for example:

    upload_max_filesize = 20M
    

    If that doesn't do the trick, you can try increasing the values for these settings also:

    max_execution_time
    max_input_time
    memory_limit
    post_max_size
    

提交回复
热议问题