如何解决phpMyAdmin最大2M文件限制问题

【No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16.】

当使用 phpMyAdmin 导入的数据库大小大于 2M 的时候,会出现如下提示:
No data was received to import. Either no file name was submitted, or the file size exceeded the maximum size permitted by your PHP configuration. See FAQ 1.16.

解决方法:
打开 Apache系统配置文件php.ini, 修改配置文件,查找以下三个地方 upload_max_filesize , memory_limit 和 post_max_size ,将其值修改为大于要导入的数据库的值,一般设为8即可,如有需要可以设置更大的数值,重启 Apache ,这样就可以导入大于 2M 的数据库了。

你可能感兴趣的:(12),PHP+MySQL基础问题)