phpMyAdmin - Error > Incorrect format parameter?

前端 未结 14 1331
生来不讨喜
生来不讨喜 2020-12-12 13:07

I have a WordPress production website.

I\'ve exported the database by the following commands: select database > export > custom > select all tables &g

相关标签:
14条回答
  • Just gone through the same problem when trying to import a CSV (400 MBs) and was also getting an error in red saying

    Error - incorrect format parameter

    Initially thought it could have been the parameters and tested again. Faster, from my previous experince with it, I realized that it was due to other reasons (size of the file, execution of script has a maximum time defined, etc).

    So, I've gone to php.ini

    and changed the values from the following settings

    max_execution_time = 3000
    max_input_time = 120
    memory_limit = 512M
    post_max_size = 1500M
    upload_max_filesize = 1500M 
    

    After this modification, stoped MySQL and Apache and started them again, went to phpmyadmin trying to import. Then I reached another error

    Fatal error: Maximum execution time of 300 seconds exceeded

    which was fixed by simply setting in xampp/phpmyadmin/libraries/config.default.php

    $cfg['ExecTimeLimit'] = 0;
    

    Setting it to 0 disables execution time limits.

    Then, after a while, the import happened without problems.

    0 讨论(0)
  • 2020-12-12 13:42

    I had this error and as I'm on shared hosting I don't have access to the php.ini so wasn't sure how I could fix it, the host didn't seem to have a clue either. In the end I emptied my browser cache and reloaded phpmyadmin and it came back!

    0 讨论(0)
  • 2020-12-12 13:43

    If you use docker-compose just set UPLOAD_LIMIT

    phpmyadmin:
        image: phpmyadmin/phpmyadmin
        environment:
            UPLOAD_LIMIT: 1G
    
    0 讨论(0)
  • 2020-12-12 13:47

    I was able to resolve this by following the steps posted here: xampp phpmyadmin, Incorrect format parameter

    Because I'm not using XAMPP, I also needed to update my php.ini.default to php.ini which finally did the trick.

    0 讨论(0)
  • 2020-12-12 13:48

    Compress your .sql file, and make sure to name it .[format].[compression], i.e. database.sql.zip.

    As noted above, PhpMyAdmin throws this error if your .sql file is larger than the Maximum allowed upload size -- but, in my case the maximum was 50MiB despite that I had set all options noted in previous answers (look for the "Max: 50MiB" next to the upload button in PhpMyAdmin).

    0 讨论(0)
  • 2020-12-12 13:53

    This issue is not because of corrupt database. I found the solution from this video - https://www.youtube.com/watch?v=MqOsp54EA3I

    It is suggested to increase the values of two variables in php.ini file. Change following in php.ini

    upload_max_filesize=64M
    post_max_size=64M
    

    Then restart the server.

    This solved my issue. Hope solves yours too.

    0 讨论(0)
提交回复
热议问题