gpt4 book ai didi

php - 无法通过phpmyadmin导入数据库

转载 作者:可可西里 更新时间:2023-11-01 07:53:00 26 4
gpt4 key购买 nike

当我尝试上传数据库 (794 kb) 时出现错误:

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.

我已经阅读了很多关于这个错误的答案,但我找不到适合我的决定和答案。

我的服务器:

Ubuntu 12.10 服务器

Apache/2.2.22 (apache2-mpm-itk);

MySQL客户端版本:5.5.27

phpmyadmin 3.4.11.1deb1;

nginx/1.2.1;

PHP 5.4.6

/etc/nginx/default中配置phpmyadmin

 location /phpmyadmin {

root /usr/share/phpmyadmin;
index index.php;

proxy_pass http://backend/phpmyadmin;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_connect_timeout 120;
proxy_send_timeout 120;
proxy_read_timeout 180;

}

php.ini 配置

file_uploads = On
upload_tmp_dir = /var/tmp
upload_max_filesize = 128M
max_file_uploads = 30
post_max_size = 128M

谢谢!

最佳答案

谢谢 @denys281 , 这对我有帮助:

chmod -R 777 /var/lib/phpmyadmin/tmp

关于php - 无法通过phpmyadmin导入数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16251193/

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