Access Denied phpMyadmin error 2002

3

I need to use phpmyadmin in xampp, but this is returning me this error

  

# 2002 - File or directory not found The server is not responding (or the local server socket is not configured   correctly). The connection to the user control, as defined   in settings, failed.

Could anyone help me?

    
asked by anonymous 08.07.2014 / 18:41

1 answer

6

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 .

    
08.07.2014 / 19:17