[resolu]phpmyadmin

oui, c’est encore moi,

mon problème est le suivant,

dans l’affichage de phpmyadmin je peux sélectionner plusieurs serveurs via la liste Serveur qui ce trouve à droite.

Mais je veux afficher les noms des serveurs et pas leur adresse IP

voici mon nano /etc/phpmyadmin/config.inc.php

Code:

/* Servers configuration */
$i = 0;

/* Server localhost (http) [1] */
$i++;
$cfg[‘Servers’][$i][‘host’] = ‘localhost’;
$cfg[‘Servers’][$i][‘extension’] = ‘mysqli’;
$cfg[‘Servers’][$i][‘connect_type’] = ‘tcp’;
$cfg[‘Servers’][$i][‘compress’] = false;
$cfg[‘Servers’][$i][‘auth_type’] = ‘http’;

/* Server 10.0.10.51 (http) [2] */
$i++;
$cfg[‘Servers’][$i][‘host’] = ‘10.0.10.51’;
$cfg[‘Servers’][$i][‘extension’] = ‘mysqli’;
$cfg[‘Servers’][$i][‘connect_type’] = ‘tcp’;
$cfg[‘Servers’][$i][‘compress’] = false;
$cfg[‘Servers’][$i][‘auth_type’] = ‘http’;

/* Server 10.0.10.52 (http) [3] */
$i++;
$cfg[‘Servers’][$i][‘host’] = ‘10.0.10.52’;
$cfg[‘Servers’][$i][‘extension’] = ‘mysqli’;
$cfg[‘Servers’][$i][‘connect_type’] = ‘tcp’;
$cfg[‘Servers’][$i][‘compress’] = false;
$cfg[‘Servers’][$i][‘auth_type’] = ‘http’;

/* End of servers configuration */

donc avec ça j’ai une liste sous phpmyadmin avec localhost et 10.0.10.51 et 52.

si je change

Code:

$cfg[‘Servers’][$i][‘host’] = ‘nomdelamachine’;

syntaxe erreur sous phpmyadmin

Code:

#2003 - Can’t connect to MySQL server on ‘nomdelamachine’ (111)

avez vous une idée?

merci

il fallait ajouter cette ligne

$cfg[‘Servers’][$i][‘verbose’] = ‘nomdelamachine’;