phpmyadmin error 13 permission denied

a 夏天 提交于 2019-12-10 18:26:24

问题


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)

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

Database server: 5.7.16 - MySQL Community Server (GPL)

Does someone know how to fix this?


回答1:


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

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 {} \; 

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



来源:https://stackoverflow.com/questions/40709663/phpmyadmin-error-13-permission-denied

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!