Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2450 connectés 

  FORUM HardWare.fr
  Programmation
  SQL/NoSQL

  Aide phpmyadmin

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Aide phpmyadmin

n°1507882
violine1
Posté le 27-01-2007 à 22:10:27  profilanswer
 

Bonjour,
 
Depuis 1 semaine que je tente de me connecter avec phpmyadmin.  Je ne sais pourquoi, mais après avoir installé avec succès apache, mysql, php5, je suis prise avec ce problème:
 
Erreur
MySQL a répondu:  
 
#1045 - Access denied for user 'root'@'localhost' (using password: NO)  
 
J'ai suivi a la lettre un tas de tutoriaux, ai créé une table en mysql (invite dos).  Je suis débutante en php, mais sais comment fonctionne phpmyadmin, sauf que la je voudrais héberger mon site sur un de mes pc et j'y arrive pas sans phpmyadmin.
 
Mon fichier config.inc.php:
 
en voici les principales composantes:
 
<?php
 
/* !!! DO NOT EDIT THIS FILE, EDIT config.inc.php INSTEAD !!! */
 
/* $Id: config.default.php 9793 2006-12-15 17:36:07Z lem9 $ */
// vim: expandtab sw=4 ts=4 sts=4:
 
/**
 * phpMyAdmin default configuration, you can copy values from here to your
 * config.inc.php
 *
 * All directives are explained in Documentation.html
 */
 
 
/**
 * Your phpMyAdmin URL.
 *
 * Complete the variable below with the full url ie
 *    http://www.your_web.net/path_to_yo [...] directory/
 *
 * It must contain characters that are valid for a URL, and the path is
 * case sensitive on some Web servers, for example Unix-based servers.
 *
 * In most cases you can leave this variable empty, as the correct value
 * will be detected automatically. However, we recommend that you do
 * test to see that the auto-detection code works in your system. A good
 * test is to browse a table, then edit a row and save it.  There will be
 * an error message if phpMyAdmin cannot auto-detect the correct value.
 */
$cfg['PmaAbsoluteUri'] = 'localhost/phpmyadmin';
 
/**
 * Disable the default warning that is displayed on the DB Details Structure page if
 * any of the required Tables for the relationfeatures could not be found
 */
$cfg['PmaNoRelation_DisableWarning']  = FALSE;
 
/**
 * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
 * at least one server configuration uses 'cookie' auth_type, enter here a
 * passphrase that will be used by blowfish. The maximum length seems to be 46
 * characters.
 */
$cfg['blowfish_secret'] = '';
 
/**
 * 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 ''. If you want more than one server, just copy following section
// (including $i incrementation) serveral times. There is no need to define
// full server array, just define values you need to change.
$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 (valid choices: config, http, HTTP or cookie)
$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
$cfg['Servers'][$i]['password']      = 'monpass';          // MySQL password (only needed
                                                    // with 'config' auth_type)
 
Je ne sais que faire pour que cela fonctionne.  Lors d'une autre tentative j'avais pas ce problème, mais en ajoutant mes login et pass cela ne fonctionnait jamais me disant utilisateur et mot de passe incorrect.
 
Lorsque je suis en invite dos, je peux voir root localhost mais je vois aussi root %....
 
Je suis vraiment a bout de ce probleme insoluble.  Ai tout essayé avant de demander mais la.... c'est la totale
 
Merci si vous pouviez m'aider.
 
Linda

mood
Publicité
Posté le 27-01-2007 à 22:10:27  profilanswer
 

n°1508252
Fab4am
Posté le 29-01-2007 à 15:26:46  profilanswer
 

t'as essayé l'utilisateur root avec monpass comme mot de passe ?
 
mais normalement, tu n'as pas a aller bidouiller ce fichier, ca amrche tout seul il me semble.
 
Tu es sous quel OS ?


Message édité par Fab4am le 29-01-2007 à 15:27:19
n°1508278
couak
Posté le 29-01-2007 à 15:49:03  profilanswer
 

Plusieurs choses à faire pour tester si tout se passe bien :
- essayer de se connecter depuis le client mysql en ligne de commande :

Code :
  1. mysql -u root -pmonpass


Si on se connecte, le login/password est bon => on a un pb côté phpmyadmin
- essayer de faire une authnetification via http et non via config => cela force à se connecter en intéractif plutôt que de mettre en dur login et password => parfois ca aide à voir plus clair sur ce qui ne va pas

n°1508367
violine1
Posté le 29-01-2007 à 18:28:19  profilanswer
 

Bonjour Couak, je me suis connectée sans aucune problème depuis le client mysql.  Alors le problème est vraiment phpmyadmin.  J'ai changé config pour http et rien a faire, j'ai encore ce même message d'erreur.
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  SQL/NoSQL

  Aide phpmyadmin

 

Sujets relatifs
Aide sur ce formulairebesoin d'aide pour requete "bizarre"
aide sur une base de donnée !aide moi svp pour page perso internet
aide pour un problème de décalage de texte en CSSaide pour securité php
Aide langage Caide méthode objet window
[BESOIN D'AIDE] phpmyadmin, données et jeux de caractères...Aide Easyphp et phpmyadmin
Plus de sujets relatifs à : Aide phpmyadmin


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR