Connection type
Based on the details provided by the error, try accessing the file:
/phpmyadmin/config.inc.php
And look for the line:
$cfg['Servers'][$i]['connect_type'] = 'tcp';
Changing tcp
to socket
.
Location of mysql.sock
Another issue with this error is that PHP can not locate the MySQL socket file. Locate your file:
/etc/php/php.ini
And look for the line:
; Default socket name for local MySQL connects. If empty, uses the built-in
; MySQL defaults.
; http://php.net/mysql.default-socket
mysql.default_socket = /caminho/para/mysql.sock
Where /caminho/para/mysql.sock
is in the sample text, put the correct path to the mysql.sock
file on your system.
Credits of the two solutions for @SemiBz and @query respectively in archlinux in this topic .