Aller au contenu

Configuration phpMyAdmin ?


e-atlantide

Sujets conseillés

Bonjour,

OVH gère les bases mySQL de la manière suivante.

Base 1

user : user1

password : password1

nom de la base : user1

Base 2

user : user2

password : password2

nom de la base : user2

...

Base 25

user : user25

password : password25

nom de la base : user25

Je souhaiterais pouvoir consulter toutes les bases de données sur la même interface phpMyAdmin.

Savez-vous comment je dois configurer le fichier de conf ?

Davance merci

Michaël

PS : je vous conseille de mettre à jour votre version de phpMyadmin car de multiples failles permettent de mener des attaques de type "Cross-Site Scripting"

Lien vers le commentaire
Partager sur d’autres sites

J'ai trouvé la solution en cherchant un peu  ;)

<{POST_SNAPBACK}>

Bonjour,

Nul doute qu'elle puisse intéresser nombre de webmasters, c'est pourquoi je t'invite à la poster ci-dessous ;)

D'avance merci :)

Lien vers le commentaire
Partager sur d’autres sites

Bien sûr.

J'ai modifié le fichier config.inc.php de la manière suivante :

/**
* Server(s) configuration
*/
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host']          = 'nom_du_serveur'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
                                                   // (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
                                                   // (this user must have read-only
$cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
                                                   // and "mysql/db" tables).
                                                   // The controluser is also
                                                   // used for all relational
                                                   // features (pmadb)
$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'user1';      // MySQL user
$cfg['Servers'][$i]['password']      = 'password1';          // MySQL password (only needed
                                                   // with 'config' auth_type)
$cfg['Servers'][$i]['only_db']       = 'user1';          // If set to a db-name, only
                                                   // this db is displayed in left frame
                                                   // It may also be an array of db-names, where sorting order is relevant.
$cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname

$cfg['Servers'][$i]['pmadb']         = '';          // Database used for Relation, Bookmark and PDF Features
                                                   // (see scripts/create_tables.sql)
                                                   //   - leave blank for no support
                                                   //     DEFAULT: 'phpmyadmin'
$cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table
                                                   //   - leave blank for no bookmark support
                                                   //     DEFAULT: 'pma_bookmark'
$cfg['Servers'][$i]['relation']      = '';          // table to describe the relation between links (see doc)
                                                   //   - leave blank for no relation-links support
                                                   //     DEFAULT: 'pma_relation'
$cfg['Servers'][$i]['table_info']    = '';          // table to describe the display fields
                                                   //   - leave blank for no display fields support
                                                   //     DEFAULT: 'pma_table_info'
$cfg['Servers'][$i]['table_coords']  = '';          // table to describe the tables position for the PDF schema
                                                   //   - leave blank for no PDF schema support
                                                   //     DEFAULT: 'pma_table_coords'
$cfg['Servers'][$i]['pdf_pages']     = '';          // table to describe pages of relationpdf
                                                   //   - leave blank if you don't want to use this
                                                   //     DEFAULT: 'pma_pdf_pages'
$cfg['Servers'][$i]['column_info']   = '';          // table to store column information
                                                   //   - leave blank for no column comments/mime types
                                                   //     DEFAULT: 'pma_column_info'
$cfg['Servers'][$i]['history']       = '';          // table to store SQL history
                                                   //   - leave blank for no SQL query history
                                                   //     DEFAULT: 'pma_history'
$cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables
                                                   // are up to date. This prevents compatibility
                                                   // checks and thereby increases performance.
$cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use
                                    = '';
$cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults
                                    = array();

Ajouter après

$i++;
$cfg['Servers'][$i]['host']            = 'nom_du_serveur';
$cfg['Servers'][$i]['port']            = '';
$cfg['Servers'][$i]['socket']          = '';
$cfg['Servers'][$i]['connect_type']    = 'tcp';
$cfg['Servers'][$i]['extension']       = 'mysql';
$cfg['Servers'][$i]['compress']        = FALSE;
$cfg['Servers'][$i]['controluser']     = '';
$cfg['Servers'][$i]['controlpass']     = '';
$cfg['Servers'][$i]['auth_type']       = 'config';
$cfg['Servers'][$i]['user']            = 'user2';
$cfg['Servers'][$i]['password']        = 'password2';
$cfg['Servers'][$i]['only_db']         = 'user2';
$cfg['Servers'][$i]['verbose']         = '';
$cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
$cfg['Servers'][$i]['bookmarktable']   = ''; // 'pma_bookmark'
$cfg['Servers'][$i]['relation']        = ''; // 'pma_relation'
$cfg['Servers'][$i]['table_info']      = ''; // 'pma_table_info'
$cfg['Servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
$cfg['Servers'][$i]['pdf_pages']       = ''; // 'pma_pdf_pages'
$cfg['Servers'][$i]['column_info']     = ''; // 'pma_column_info'
$cfg['Servers'][$i]['history']         = ''; // 'pma_history'
$cfg['Servers'][$i]['verbose_check']   = TRUE;
$cfg['Servers'][$i]['AllowDeny']['order']
                                      = '';
$cfg['Servers'][$i]['AllowDeny']['rules']
                                      = array();

$i++;
$cfg['Servers'][$i]['host']            = 'nom_du_serveur';
$cfg['Servers'][$i]['port']            = '';
$cfg['Servers'][$i]['socket']          = '';
$cfg['Servers'][$i]['connect_type']    = 'tcp';
$cfg['Servers'][$i]['extension']       = 'mysql';
$cfg['Servers'][$i]['compress']        = FALSE;
$cfg['Servers'][$i]['controluser']     = '';
$cfg['Servers'][$i]['controlpass']     = '';
$cfg['Servers'][$i]['auth_type']       = 'config';
$cfg['Servers'][$i]['user']            = 'user3';
$cfg['Servers'][$i]['password']        = 'password3';
$cfg['Servers'][$i]['only_db']         = 'user3';
$cfg['Servers'][$i]['verbose']         = '';
$cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
$cfg['Servers'][$i]['bookmarktable']   = ''; // 'pma_bookmark'
$cfg['Servers'][$i]['relation']        = ''; // 'pma_relation'
$cfg['Servers'][$i]['table_info']      = ''; // 'pma_table_info'
$cfg['Servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
$cfg['Servers'][$i]['pdf_pages']       = ''; // 'pma_pdf_pages'
$cfg['Servers'][$i]['column_info']     = ''; // 'pma_column_info'
$cfg['Servers'][$i]['history']         = ''; // 'pma_history'
$cfg['Servers'][$i]['verbose_check']   = TRUE;
$cfg['Servers'][$i]['AllowDeny']['order']
                                      = '';
$cfg['Servers'][$i]['AllowDeny']['rules']
                                      = array();

et ainsi de suite...

A+

Michaël

Lien vers le commentaire
Partager sur d’autres sites

  • 1 year later...

Bonjour,

Je loue depuis plusieurs semaines un serveur dédié chez OVH (avec Red Hat Linux release 7.2) et j'ai mis à jour phpMyAdmin (2.10.1) à l'aide d'un tutoriel trouvé sur Internet (art-coding.fr).

Depuis cette mise à jour, j'ai quelques problèmes : je parviens bien à me connecter, mais il m'est impossible de faire une quelconque opération sur les tables. Rien ne se produit. Je pense que c'est mon confing.inc.php qui cloche. (Et je n'ai plus l'ancien, car je l'ai effacé :thumbsdown: )

Le voici (j'ai effacé les lignes commentées) :

<?php

$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
$i = 0;
$i++;
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['PmaAbsoluteUri'] = 'https://nsXXX.ovh.net/phpMyAdmin/';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

?>

Voyez-vous un problème ?

Par ailleurs, le répertoire phpmyadmin est protégé par un .htaccess, mais je ne le vois pas en explorant le dossier avec mon logiciel FTP. Pourtant, il doit bien être quelque part, car je dois m'identifier pour me connecter... Savez-vous où il peut se trouver ?

Merci à vous !

Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...