当我尝试上传数据库(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服务器
阿帕奇/ 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的/默认配置的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
谢谢!