无法通过phpmyadmin导入数据库

当我尝试上传数据库(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
上一篇:linux常用指令


下一篇:403禁止在工作模式下使用php.仅限浏览器中的php文件