phpMyAdmin is throwing a #2002 cannot log in to the mysql server phpmyadmin

前端 未结 27 2364
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 14:50

I have installed MySQL server enterprise 5.1 on my local machine and now I want to install phpMyAdmin, but it does not work.

I have unrared phpMyAdmin to my server r

27条回答
  •  盖世英雄少女心
    2020-11-27 15:09

    After Many attempts in getting this fixed, it was found out that the issue was with Mysql users not being allowed to login

    netstat -na | grep -i 3306
    

    If it is listening on all interfaces, then you can assign any of your interfaces to this

    $cfg['Servers'][$i]['host'] = 'ANY INTERFACE';
    

    Try to Login using the above IP using the comand line

    mysql -u bla -p -h 
    

    If this works then your phpmyadmin will also work, If not fix the mysql.user table so that the above command works and allows you to login to mysql.

提交回复
热议问题