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

前端 未结 27 2287
爱一瞬间的悲伤
爱一瞬间的悲伤 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:24

    If you're getting the #2002 Cannot log in to the MySQL server error while logging in to phpmyadmin, try editing phpmyadmin/config.inc.php and change:

    $cfg['Servers'][$i]['host'] = 'localhost';

    to:

    $cfg['Servers'][$i]['host'] = '127.0.0.1';

    Solution from Ryan's blog

    Edit (20-Mar-2015):

    Note that if you're on a fresh install, config.inc.php may not exist. You need to rename / copy config.sample.inc.php and then change the relevant line

提交回复
热议问题