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

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

    Background: I am using Linux Mint 13. In my case, this error happened when I restarted the computer and my DHCP assigned a new local IP address (from 192.168.0.2 to 192.168.0.4) to my desktop.

    sudo gedit /etc/mysql/my.cnf
    

    Update

    bind-address = 192.168.0.2
    

    to

    bind-address = localhost
    

    This fixed the problem. Enjoy.

提交回复
热议问题