[英]phpmyadmin error 13 permission denied
I was working with my php server & phpmyadmin for MYSQL. 我正在使用我的php服务器和phpmyadmin进行MYSQL。 I wanted to install some packages with composer, than somehow I changed permissions on my project folder and than database from phpmyadmin disappeared.
我想用composer安装一些软件包,不知何故我改变了我的项目文件夹的权限,而不是phpmyadmin的数据库消失了。 I lost everything.
我失去了一切。 I am trying to recover it for 3 hours.
我想恢复它3个小时。 I am receiving these errors when I am trying to import create_tables.sql
我在尝试导入create_tables.sql时收到这些错误
#13 - Can't get stat of './phpmyadmin' (Errcode: 13 - Permission denied)
and 和
Warning in ./libraries/dbi/DBIMysqli.php#261
mysqli_query(): (HY000/1018): Can't read '.' (error code: 13 - Permission denied)
I am running on Web server: Apache/2.4.23 (Unix) PHP/5.6.25 libmysql - mysqlnd 5.0.11-dev 我在Web服务器上运行:Apache / 2.4.23(Unix)PHP / 5.6.25 libmysql - mysqlnd 5.0.11-dev
Database server: 5.7.16 - MySQL Community Server (GPL) 数据库服务器:5.7.16 - MySQL社区服务器(GPL)
Does someone know how to fix this? 有人知道如何解决这个问题吗?
Seems that the web server cannot read some (or all) files in the phpmyadmin directory ( (Errcode: 13 - Permission denied)
). 似乎Web服务器无法读取phpmyadmin目录中的某些(或所有)文件(
(Errcode: 13 - Permission denied)
)。
You need to fix the permissions by executing the following commands, assuming the phpmyadmin is located at /path/to/phpmyadmin
: 假设phpmyadmin位于
/path/to/phpmyadmin
,您需要通过执行以下命令来修复权限:
find /path/to/phpmyadmin -type d -exec chmod 755 {} \;
find /path/to/phpmyadmin -type f -exec chmod 644 {} \;
Obviously, you need to replace /path/to/phpmyadmin
with the actual path. 显然,您需要将
/path/to/phpmyadmin
替换为实际路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.