phpMyAdmin unexpectedly Unable to login, entered the user name and password after clicking "Execute" has been reported "#2002 unable to log on to the MySQL server."
Then finally found a solution to the "Phpmyadmin/libraries" folder in the config.default.php file
$cfg [' Servers '] [$i] [' host '] = ' localhost ';
Revision changed to
$cfg [' Servers '] [$i] [' host '] = ' 127.0.0.1 ';
It's settled.
A MySQL customer can connect to a MYSQLD server in two different ways: a UNIX socket, which is connected by a file in the file system (the default "/tmp/mysqld.sock"), or TCP/IP, which is connected by a port number. UNIX sockets are faster than TCP/IP, but are used only on servers that connect to the same computer . If you do not specify a host name or if you specify a special hostname, localhost, use a UNIX socket.
Error (2002) Can ' t connect to ... Usually means that no MySQL server is running on the system or when trying to connect to the MYSQLD server, you are using an incorrect socket file or TCP/IP port.
By checking (using PS) on your server there is a process called mysqld to start! If there is no mysqld process, you should start one.
#2002 cannot log on to the MySQL server