IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Outils MySQL Discussion :

authentification MySQL + PhpMyAdmin


Sujet :

Outils MySQL

  1. #1
    Membre éprouvé Avatar de sebhm
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2004
    Messages
    1 090
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 43
    Localisation : France, Landes (Aquitaine)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : Agroalimentaire - Agriculture

    Informations forums :
    Inscription : Avril 2004
    Messages : 1 090
    Points : 1 241
    Points
    1 241
    Par défaut authentification MySQL + PhpMyAdmin
    Bonjour,

    j'utilise PhpMyAdmin et je veux protéger l'accès par un mot de passe.
    Voici mon fichier config.inc.php qui définit mon authentification :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    <?php
    $i=0;
    $i++;
    $cfg['Servers'][$i]['auth_type'] = 'http';
    ?>
    rien de très compliqué...

    Quand j'accède à PhpMyAdmin (http:\\[@ip serveur Web]\Phpmyadmin\), j'arrive d'abord sur le message :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Erreur d'utilisateur/mot de passe. Accès refusé
    Je fais F5 (rafraichir), il me demande alors un mot de passe. Je saisie mon user MySQL et il me laisse alors passer.

    Ma question est : Pourquoi il me demande pas tout de suite le mot de passe ??
    J'arrive toujours sur une erreur d'abord...

    Merci de votre aide.

  2. #2
    Membre du Club
    Profil pro
    Inscrit en
    Juillet 2004
    Messages
    84
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2004
    Messages : 84
    Points : 69
    Points
    69
    Par défaut
    Je ne sais pas si ca peut t'aider, mais dans mon fichier de config, ca ressemble à çà:
    $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'] = 'localhost'; // 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'] = 'root'; // MySQL user
    $cfg['Servers'][$i]['password'] = 'toto'; // MySQL password (only needed
    // with 'config' auth_type)
    $cfg['Servers'][$i]['only_db'] = ''; // 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]['AllowRoot'] = TRUE; // whether to allow root login
    $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();
    ________________________________________
    Evitez les pavés de codes! C'est dur et chiant à lire!
    Pensez aux clostro!

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [MySQL - phpMyAdmin] Comment gérer les FK maintenant ?
    Par Julaie95 dans le forum Langage SQL
    Réponses: 3
    Dernier message: 30/01/2006, 22h10
  2. Réponses: 22
    Dernier message: 02/12/2005, 15h37
  3. mysql phpmyadmin clee secondaire
    Par loleske dans le forum Requêtes
    Réponses: 3
    Dernier message: 13/10/2005, 14h18
  4. [MySql/PHPMyAdmin]nouvel utilisateur et acces table
    Par Bug's Bunny dans le forum Débuter
    Réponses: 6
    Dernier message: 28/07/2004, 14h03
  5. Securité mysql phpmyadmin ???
    Par xophe2 dans le forum Apache
    Réponses: 6
    Dernier message: 24/06/2004, 11h34

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo