Phpmyadmin: # 2003 Cannot login to MySQL server after successful login

I just switched to the new mysql server (version 5.1.69 on CentOS 6.4) and the application (running on Cent OS 5.8, PHP 5.3.3 with the mysql and mysqli user libraries built using mysql 5.1.69) works fine. PhpMyAdmin 4.0.5 is written in order, but as soon as I click on any link I get

#2003 Cannot log in to the MySQL server 

Any suggestions are welcome.

+4
source share
1 answer

Same problem for me. I can connect via mysql CLI but still getting the same error message

In the end, I found a solution: this is a SELinux problem. You can solve this in two ways:

  • disable selinux. Team:
    "setenforce 0"
  • allows httpd to connect db through scripts. Team:
    "setsebool -P httpd_can_network_connect_db on"
+1
source

Source: https://habr.com/ru/post/1499018/


All Articles