gpt4 book ai didi

PHPMyAdmin 文件导入错误

转载 作者:行者123 更新时间:2023-12-02 22:57:40 25 4
gpt4 key购买 nike

我似乎无法让 PHPMYADMIN 正确导入 SQL 文件,因为它给出了错误:

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.

文档说:

The first things to check (or ask your host provider to check) are the values of upload_max_filesize, memory_limit and post_max_size in the php.ini configuration file. All of these three settings limit the maximum size of data that can be submitted and handled by PHP. One user also said that post_max_size and memory_limit need to be larger than upload_max_filesize.

这就是我所做的...

更改了 PHP.INI 参数

  • upload_max_filesize = 1000M
  • 内存限制 = 1500M
  • post_max_size = 1500M
  • 重新启动 Apache

我还尝试了不同的限制变量,希望也许我将它们设置得太高......但这并不重要。 PHPMYADMIN 确认(在导入页面上)上传变量设置为“(最大:1,000MiB)”,但仍然不好。我只想上传一个 5MB 大小的文件。

任何帮助将不胜感激!

最佳答案

我刚刚在我自己的开发机器上修复了这个问题。在/etc/phpmyadmin/apache.conf 中,您可以看到 phpmyadmin 尝试存储临时文件的位置,例如:

php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp

确保 apache 运行的用户可以写入该文件并且有可用空间。

就我而言,在我的开发机器上,我以我自己的用户身份运行 apache,而不是普通的 www-data 或 apache 用户。我的用户无法写入该 tmp 目录。

关于PHPMyAdmin 文件导入错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8853301/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com