<?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'localhost'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['AllowNoPassword'] = true; /* End of servers configuration */ $cfg['DefaultLang'] = 'en-utf-8'; $cfg['ServerDefault'] = 1; $cfg['UploadDir'] = ''; $cfg['SaveDir'] = ''; /* rajk - for blobstreaming */ $cfg['Servers'][$i]['bs_garbage_threshold'] = 50; $cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; $cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; $cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; ?>Lors de son lancement, PhpMyAdmin va lire les valeurs de configuration par défaut qui sont situées dans le fichier wamp\apps\phpmyadmin3.5.1\libraries\config.default.php puis seulement après, le fichier wamp\apps\phpmyadmin3.5.1\config.inc.php ce qui fait qu'il faut mettre dans ce fichier UNIQUEMENT les valeurs qui sont différentes de celles par défaut ce qui donne un fichier wamp\apps\phpmyadmin3.5.1\config.inc.php commenté comme suit :
<?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; //Par défaut $cfg['Servers'][$i]['verbose'] = 'localhost'; //Par défaut $cfg['Servers'][$i]['host'] = 'localhost'; //Par défaut $cfg['Servers'][$i]['port'] = ''; //Par défaut $cfg['Servers'][$i]['socket'] = ''; //Par défaut $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['AllowNoPassword'] = true; /* End of servers configuration */ //Par défaut $cfg['DefaultLang'] = 'en-utf-8'; //Par défaut $cfg['ServerDefault'] = 1; //Par défaut $cfg['UploadDir'] = ''; //Par défaut $cfg['SaveDir'] = ''; /* rajk - for blobstreaming */ //N'existe pas de base $cfg['Servers'][$i]['bs_garbage_threshold'] = 50; //N'existe pas de base $cfg['Servers'][$i]['bs_repository_threshold'] = '32M'; //N'existe pas de base $cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600; //N'existe pas de base $cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M'; ?>On se retrouve donc avec un fichier config.inc.php minimal mais qui fonctionne car il ne faut pas y mettre des valeurs qui ne sont pas nécessaires et qui sont sources de mauvaise interprétation par l'utilisateur.
<?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['AllowNoPassword'] = true; /* End of servers configuration */ ?>Nota : On peut remplacer "mysqli" par "mysql". Si "mysqli" est choisi, s'assurer que l'extension "php_mysqli" est validée pour être chargée.
<?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'secret'; /* End of servers configuration */ ?>Si vous voulez que le mot de passe n'apparaisse pas dans le fichier de configuration, il est possible de modifier le fichier wamp\apps\phpmyadmin3.5.1\config.inc.php comme suit :
<?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'http'; $cfg['Servers'][$i]['user'] = ''; $cfg['Servers'][$i]['password'] = ''; /* End of servers configuration */ ?>Lors du lancement de PhpMyAdmin, un formulaire vous demandera le nom utilisateur et le mot de passe.
<?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'secret'; // Supprime l'avertissement aux sujets des tables pmadb $cfg['PmaNoRelation_DisableWarning'] = TRUE; /* End of servers configuration */ ?>et il n'y aura plus d'avertissement au sujet des nouvelles fonctionnalités.
<?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'secret'; /* End of servers configuration */ /* PhpMyAdmin Tables */ $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark'; $cfg['Servers'][$i]['column_info'] = 'pma_column_info'; $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords'; $cfg['Servers'][$i]['history'] = 'pma_history'; $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages'; $cfg['Servers'][$i]['recent'] = 'pma_recent'; $cfg['Servers'][$i]['relation'] = 'pma_relation'; $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords'; $cfg['Servers'][$i]['table_info'] = 'pma_table_info'; $cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs'; $cfg['Servers'][$i]['tracking'] = 'pma_tracking'; $cfg['Servers'][$i]['userconfig'] = 'pma_userconfig'; ?>et il n'y aura plus d'avertissement au sujet des nouvelles fonctionnalités.