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

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

    Just in case anyone has anymore troubles, this is a pretty sure fix.

    check your etc/hosts file make sure you have a root user for every host.

    i.e.

    127.0.0.1   home.dev
    
    localhost   home.dev
    

    Therefore I will have 2 or more users as root for mysql:

    root@localhost
    root@home.dev
    

    this is how I fixed my problem.

提交回复
热议问题