; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
post_max_size=2M
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize=8M
如果尝试通过PHPMyAdmin上传数据库导入,会抛出异常。
修复错误Incorrect format parameter
Incorrect format parameter解决办法:请确保为上述属性post_max_size和设置相等的值upload_max_filesize。这只是逻辑,如果您将这些属性的值配置为大于另一个值,则它根本不起作用,例如,如果您的最大允许文件大小为 8MB(理论上文件大小通过),则无法上传 5MB 的文件,但允许的最大 POST 大小只有 2M,这没有意义。修复这些值以使用相同的数字,这应该就足够了(该值可以是您需要的任何值,而不是 64MB):
; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
post_max_size=64M
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize=64M