phpmyadmin错误13权限被拒绝 [英] phpmyadmin error 13 permission denied

查看:353
本文介绍了phpmyadmin错误13权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在与我的php服务器一起使用& phpmyadmin for MYSQL.我想用composer安装一些软件包,而不是以某种方式更改项目文件夹的权限,然后从phpmyadmin删除数据库.我失去了一切.我试图将其恢复3小时.尝试导入create_tables.sql

I was working with my php server & phpmyadmin for MYSQL. I wanted to install some packages with composer, than somehow I changed permissions on my project folder and than database from phpmyadmin disappeared. I lost everything. I am trying to recover it for 3 hours. I am receiving these errors when I am trying to import create_tables.sql

#13 - Can't get stat of './phpmyadmin' (Errcode: 13 - Permission denied)

Warning in ./libraries/dbi/DBIMysqli.php#261
 mysqli_query(): (HY000/1018): Can't read '.' (error code: 13 - Permission denied)

我正在Web服务器上运行: Apache/2.4.23(Unix)PHP/5.6.25 libmysql-mysqlnd 5.0.11-dev

I am running on Web server: Apache/2.4.23 (Unix) PHP/5.6.25 libmysql - mysqlnd 5.0.11-dev

数据库服务器: 5.7.16-MySQL社区服务器(GPL)

Database server: 5.7.16 - MySQL Community Server (GPL)

有人知道如何解决此问题吗?

Does someone know how to fix this?

推荐答案

似乎Web服务器无法读取phpmyadmin目录((Errcode: 13 - Permission denied))中的某些(或全部)文件.

Seems that the web server cannot read some (or all) files in the phpmyadmin directory ((Errcode: 13 - Permission denied)).

假设phpmyadmin位于/path/to/phpmyadmin,您需要通过执行以下命令来修复权限:

You need to fix the permissions by executing the following commands, assuming the phpmyadmin is located at /path/to/phpmyadmin:

find /path/to/phpmyadmin -type d -exec chmod 755 {} \;
find /path/to/phpmyadmin -type f -exec chmod 644 {} \; 

显然,您需要用实际路径替换/path/to/phpmyadmin.

Obviously, you need to replace /path/to/phpmyadmin with the actual path.

这篇关于phpmyadmin错误13权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆