Access Denied when opening phpMyAdmin

前端 未结 19 859
野的像风
野的像风 2020-12-09 05:47

What could be the problem of my mysql database server in WAMP.

I can\'t open it. The error says:

MySQL sai         


        
19条回答
  •  没有蜡笔的小新
    2020-12-09 05:59

    I have been through the exact same situation. Read loads of blog and posts. So far my understanding is that it happens mostly because of permission issues. Ubuntu/Linux deals directory access and their permissions very strictly.

    Find out where is mysql directory is, then give it proper access right n permission. refresh you localhost/phpmyadmin it should be working now.

    In my case I did following according this blog:

    sudo chown -R mysql.mysql /opt/lampp/var/mysql
    
    • Please notice here that in the blog it says mysql directory in /var/lib/mysql
    • But actually directory in my machine was /opt/lampp/var/mysql

    So directories can differ. Therefore, point out right directory and give it proper access. It should be working fine after unless there isn't any hidden error attached to it.

提交回复
热议问题