phpMyadmin-4.7.9 com seguinte erro #2002 - <br />O servidor não está a responder (ou o socket do servidor local está mal configurado).
<?php
/* Servers configuration */ $i = 0;
$cfg['blowfish_secret'] = 'h]C+{nqW$omNoTIkCwC$%z-LTcy%p6_j$|$Wv[mwngi~|e'; //What you want
//Checking Active DBMS Servers $wampConf = @parse_ini_file('../../wampmanager.conf'); //Check if MySQL and MariaDB with MariaDB on default port $mariaFirst = ($wampConf['SupportMySQL'] == 'on' && $wampConf['SupportMariaDB'] == 'on' && $wampConf['mariaPortUsed'] == $wampConf['mysqlDefaultPort']) ? true : false; if($wampConf['SupportMySQL'] == 'on') { /* Server: localhost [1] */ $i++; if($mariaFirst) $i++; $cfg['Servers'][$i]['verbose'] = 'MySQL'; $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; Acrescentei a linha e troquei 'TCP' para 'SOCKET' $cfg['Serveres'][$i]['compress'] = false; inha acrescentada com 'true' e mudada para 'flase' $cfg['Servers'][$i]['port'] = $wampConf['mysqlPortUsed']; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['user'] = 'root'; root acrescentado pelo usuário $cfg['Servers'][$i]['password'] = '';
// Hidden databases in PhpMyAdmin left panel //$cfg['Servers'][$i]['hide_db'] = '(information_schema|mysql|performance_schema|sys)';
// Allow connection without password $cfg['Servers'][$i]['AllowNoPassword'] = true; } /* Server: localhost [2] */ if($wampConf['SupportMariaDB'] =='on') { $i++; if($mariaFirst) $i -= 2; $cfg['Servers'][$i]['verbose'] = 'MariaDB'; $cfg['Servers'][$i]['host'] = '127.0.0.1'; $cfg['Servers'][$i]['connect_type'] = 'tcp'; Acrescentei a linha e troquei 'TCP' para 'SOCKET' $cfg['Serveres'][$i]['compress'] = false; linha acrescentada com 'true' e mudada para 'flase' $cfg['Servers'][$i]['port'] = $wampConf['mariaPortUsed']; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'cookie'; $cfg['Servers'][$i]['user'] = ''; 'já tentei com root' no User $cfg['Servers'][$i]['password'] = '';
// Hidden databases in PhpMyAdmin left panel //$cfg['Servers'][$i]['hide_db'] = '(information_schema|mysql|performance_schema|sys)'; // Allow connection without password $cfg['Servers'][$i]['AllowNoPassword'] = true; }
// Suppress Warning about pmadb tables $cfg['PmaNoRelation_DisableWarning'] = true;
// To have PRIMARY & INDEX in table structure export $cfg['Export']['sql_drop_table'] = true; $cfg['Export']['sql_if_not_exists'] = true;
$cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/refman/5.7/en/'; /* End of servers configuration */
Outra questão com esse erro prende-se pelo PHP não conseguir localizar o ficheiro socket do MySQL.
/etc/php/php.ini
; Default socket name for local MySQL connects. If empty, uses the built-in ; MySQL defaults. ; [php.net] mysql.default_socket = /caminho/para/mysql.sock
Onde está /caminho/para/mysql.sock no texto de exemplo, coloca o caminho correto para o ficheiro mysql.sock no teu sistema.
apos pré instalado phpmyadmin não loga com root para as demais configurações o mesmo apresenta erro
#2002 ou Socket mal configurado demais serviços trabalhando perfeitamente
em phpForapache.ini post_max_size = 8M mudar para 60
em php.ini date.timezone ="UTC" Brazil UTC mudar para America/Sao_Paulo
Dans les deux cas, ce n'est pas la peine de mettre la copie du fichier config.inc.php de PhpMyAdmin, nous savons ce qu'il contient.
In both cases, it is not worth putting the copy of the PhpMyAdmin config.inc.php file, we know what it contains.
> em php.ini date.timezone ="UTC" Brazil UTC mudar para America/Sao_Paulo Esquerdo-Clique icone Wampmanager -> PHP -> Configuração PHP -> date.timezone -> America -> America/Sao_Paulo