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

EDI, CMS, Outils, Scripts et API PHP Discussion :

Mot de passe par défaut [phpMyAdmin]


Sujet :

EDI, CMS, Outils, Scripts et API PHP

  1. #1
    Membre habitué
    Profil pro
    Inscrit en
    Octobre 2007
    Messages
    268
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Octobre 2007
    Messages : 268
    Points : 128
    Points
    128
    Par défaut Mot de passe par défaut
    Bonjour,

    Je viens de réinstaller phpmyadmin sous ubuntu (dédié) pour y mettre ma première petite BDD :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    sudo apt-get remove --purge phpmyadmin && sudo apt-get install phpmyadmin
    et quand je rentre de me connecter pour la première fois à l'interface phpmyadmin avec Login : root sans mot de passe, il me retourne

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    Erreur
    #1045 - Access denied for user 'root'@'localhost' (using password: NO)


    J'ai toujours installé phpmyadmin en local avec WAMP, y a des choses spécifiques à modifier dans le fichier qui suit ?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
     
     cat /etc/phpmyadmin/config.inc.php
    <?php
    /**
     * Debian local configuration file
     *
     * This file overrides the settings made by phpMyAdmin interactive setup
     * utility.
     *
     * For example configuration see /usr/share/doc/phpmyadmin/examples/config.default.php.gz
     *
     * NOTE: do not add security sensitive data to this file (like passwords)
     * unless you really know what you're doing. If you do, any user that can
     * run PHP or CGI on your webserver will be able to read them. If you still
     * want to do this, make sure to properly secure the access to this file
     * (also on the filesystem level).
     */
     
    /**
     * 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++;
     
    // Uncomment to override the default configuration
    //$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']  = 'socket';    // 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']     = 'cookie';    // Authentication method (config, http or cookie based)?
    //$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
    //$cfg['Servers'][$i]['password']      = '';          // 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']         = 'phpmyadmin';// Database used for Relation, Bookmark and PDF Features
    //                                                    // (see scripts/create_tables.sql)
    //                                                    //   - leave blank for no support
    //                                                    //     DEFAULT: 'phpmyadmin'
    //$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';// Bookmark table
    //                                                    //   - leave blank for no bookmark support
    //                                                    //     DEFAULT: 'pma_bookmark'
    //$cfg['Servers'][$i]['relation']      = 'pma_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']    = 'pma_table_info';// table to describe the display fields
    //                                                    //   - leave blank for no display fields support
    //                                                    //     DEFAULT: 'pma_table_info'
    //$cfg['Servers'][$i]['table_coords']  = 'pma_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']     = 'pma_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']   = 'pma_column_info';// table to store column information
    //                                                    //   - leave blank for no column comments/mime types
    //                                                    //     DEFAULT: 'pma_column_info'
    //$cfg['Servers'][$i]['history']       = 'pma_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();
     
    ?>

  2. #2
    Membre du Club Avatar de TheEwook
    Inscrit en
    Novembre 2004
    Messages
    44
    Détails du profil
    Informations personnelles :
    Âge : 42

    Informations forums :
    Inscription : Novembre 2004
    Messages : 44
    Points : 50
    Points
    50
    Par défaut
    Salut,

    Essai avec root comme login et root comme mot de passe.

  3. #3
    Membre habitué
    Profil pro
    Inscrit en
    Octobre 2007
    Messages
    268
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Octobre 2007
    Messages : 268
    Points : 128
    Points
    128
    Par défaut
    ça donne

    Erreur
    #1045 - Access denied for user 'root'@'localhost' (using password: YES)
    j'ai essayé aussi admin sans mot de passe et admin admin

    idem

  4. #4
    Membre du Club Avatar de TheEwook
    Inscrit en
    Novembre 2004
    Messages
    44
    Détails du profil
    Informations personnelles :
    Âge : 42

    Informations forums :
    Inscription : Novembre 2004
    Messages : 44
    Points : 50
    Points
    50
    Par défaut
    OK, donc maintenant faut réfléchir un peu...

    Essai en enlevant les commentaires sur :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    //$cfg['Servers'][$i]['user']          = 'root'; 
    //$cfg['Servers'][$i]['password']      = '';
    Et ré essai avec root et sans mot de passe.

  5. #5
    Membre habitué
    Profil pro
    Inscrit en
    Octobre 2007
    Messages
    268
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Octobre 2007
    Messages : 268
    Points : 128
    Points
    128
    Par défaut
    toujours la même erreur

  6. #6
    Membre habitué
    Profil pro
    Inscrit en
    Octobre 2007
    Messages
    268
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Octobre 2007
    Messages : 268
    Points : 128
    Points
    128
    Par défaut
    J'ai réinstallé mysql-server

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    sudo apt-get remove --purge mysql-server && sudo apt-get install mysql-server
    j'ai fait la même chose pour phpmyadmin

    ensuite

    J'ai aussi essayé ça :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    /usr/bin/mysqladmin -u root monmotdepasse
    /usr/bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'root'@'localhost' (using password: NO)'

    /usr/sbin/mysqld --skip-grant
    me retourne en plantant (ctrl+c ctrl+d ou ctrl backspace fonctionne pas)

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    InnoDB: Unable to lock ./ibdata1, error: 11
    InnoDB: Check that you do not already have another mysqld process
    InnoDB: using the same InnoDB data or log files.
    je regarde mes process et je ne trouve qu'un process mysqld :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
     
    root@ks353968:~# ps aux
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root         1  0.0  0.9   3044  2016 ?        Ss    2007   0:02 /sbin/init
    root         2  0.0  0.0      0     0 ?        S     2007   0:00 [migration/0]
    root         3  0.0  0.0      0     0 ?        SN    2007   0:00 [ksoftirqd/0]
    root         4  0.0  0.0      0     0 ?        S<    2007   0:00 [events/0]
    root         5  0.0  0.0      0     0 ?        S<    2007   0:00 [khelper]
    root         6  0.0  0.0      0     0 ?        S<    2007   0:00 [kthread]
    root        65  0.0  0.0      0     0 ?        S<    2007   0:00 [kblockd/0]
    root        66  0.0  0.0      0     0 ?        S<    2007   0:00 [kacpid]
    root       148  0.0  0.0      0     0 ?        S<    2007   0:00 [ata/0]
    root       149  0.0  0.0      0     0 ?        S<    2007   0:00 [ata_aux]
    root       150  0.0  0.0      0     0 ?        S<    2007   0:00 [ksuspend_usbd]
    root       153  0.0  0.0      0     0 ?        S<    2007   0:00 [khubd]
    root       155  0.0  0.0      0     0 ?        S<    2007   0:00 [kseriod]
    root       178  0.0  0.0      0     0 ?        S     2007   0:00 [pdflush]
    root       179  0.0  0.0      0     0 ?        S     2007   0:00 [pdflush]
    root       180  0.0  0.0      0     0 ?        S<    2007   0:01 [kswapd0]
    root       181  0.0  0.0      0     0 ?        S<    2007   0:00 [aio/0]
    root       182  0.0  0.0      0     0 ?        S<    2007   0:00 [xfslogd/0]
    root       183  0.0  0.0      0     0 ?        S<    2007   0:00 [xfsdatad/0]
    root       725  0.0  0.1   1820   436 ?        S     2007   0:00 /usr/sbin/couri
    root       726  0.0  0.2   1972   620 ?        S     2007   0:00 /usr/lib/courie
    root       727  0.0  0.3   2184   680 ?        S     2007   0:00 /usr/lib/courie
    root       728  0.0  0.3   2184   680 ?        S     2007   0:00 /usr/lib/courie
    root       729  0.0  0.3   2184   680 ?        S     2007   0:00 /usr/lib/courie
    root       730  0.0  0.3   2184   680 ?        S     2007   0:00 /usr/lib/courie
    root       734  0.0  0.3   2184   680 ?        S     2007   0:00 /usr/lib/courie
    root       787  0.0  0.2   1928   552 ?        S     2007   0:00 /usr/sbin/couri
    root       792  0.0  0.2   1824   508 ?        S     2007   0:00 /usr/sbin/couri
    root       853  0.0  0.0      0     0 ?        S<    2007   0:00 [kpsmoused]
    root       857  0.0  0.0      0     0 ?        S<    2007   0:00 [kcryptd/0]
    root       864  0.0  0.0      0     0 ?        S<    2007   0:43 [kjournald]
    root      1042  0.0  0.5   2852  1200 ?        S<s   2007   0:00 /sbin/udevd --d
    root      1648  0.0  0.7   4952  1572 ?        Ss    2007   0:00 /usr/lib/postfi
    root      2057  0.0  0.0      0     0 ?        S<    2007   0:00 [kjournald]
    root      2359  0.0  0.2   1644   500 tty4     Ss+   2007   0:00 /sbin/getty 384
    root      2360  0.0  0.2   1644   500 tty5     Ss+   2007   0:00 /sbin/getty 384
    root      2364  0.0  0.2   1644   500 tty2     Ss+   2007   0:00 /sbin/getty 384
    root      2365  0.0  0.2   1644   500 tty3     Ss+   2007   0:00 /sbin/getty 384
    root      2366  0.0  0.2   1644   500 tty1     Ss+   2007   0:00 /sbin/getty 384
    root      2367  0.0  0.2   1644   500 tty6     Ss+   2007   0:00 /sbin/getty 384
    root      2368  0.0  0.2   1644   508 ttyS0    Ss+   2007   0:00 /sbin/getty -L
    root      2402  0.0  0.5   2256  1168 ?        Ss    2007   0:00 /usr/sbin/acpid
    root      2423  0.0  0.3   1700   660 ?        Ss    2007   0:45 /sbin/syslogd
    postfix   2456  0.0  0.7   4996  1636 ?        S     2007   0:00 qmgr -l -t fifo
    root      2480  0.0  0.2   1792   516 ?        Ss    2007   0:00 /bin/dd bs 1 if
    klog      2482  0.0  0.1   1648   408 ?        Ss    2007   0:00 /sbin/klogd -P
    postfix   2493  0.0  0.9   5012  1972 ?        S     2007   0:00 tlsmgr -l -t un
    103       2505  0.0  0.4   2712   952 ?        Ss    2007   0:00 /usr/bin/dbus-d
    107       2523  0.0  3.8  10028  8348 ?        Ss    2007   0:01 /usr/sbin/hald
    root      2524  0.0  0.4   2872   988 ?        S     2007   0:00 hald-runner
    root      2552  0.0  0.3   1936   696 ?        Ss    2007   0:00 /usr/sbin/dhcdb
    root      2569  0.0  0.8   4120  1820 ?        Ss    2007   0:00 /usr/sbin/Netwo
    avahi     2588  0.0  0.6   2768  1428 ?        Ss    2007   0:11 avahi-daemon: r
    avahi     2589  0.0  0.2   2664   456 ?        Ss    2007   0:00 avahi-daemon: c
    root      2605  0.0  0.5   3024  1140 ?        Ss    2007   0:00 /usr/sbin/Netwo
    root      2620  0.0  0.3   2864   796 ?        Ss    2007   0:00 /usr/bin/system
    root      2621  0.0  0.5   2712  1216 ?        S     2007   0:00 dbus-daemon --s
    root      2637  0.0 11.8  28744 25884 ?        Ss    2007   0:00 /usr/sbin/spamd
    spamd     2639  0.0 13.5  32552 29704 ?        S     2007   0:05 spamd child
    spamd     2640  0.0 12.6  30464 27588 ?        S     2007   0:00 spamd child
    root      2679  0.0  0.3   6408   828 ?        Ss    2007   0:00 /usr/sbin/hpiod
    hplip     2682  0.0  2.2   9980  4884 ?        S     2007   0:00 python /usr/sbi
    root      2770  0.0  0.4   5080   988 ?        Ss    2007   0:05 /usr/sbin/sshd
    daemon    2849  0.0  0.1   1908   416 ?        Ss    2007   0:00 /usr/sbin/atd
    root      8416  0.0  0.4   2580   992 ?        Ss    2007   0:05 /usr/sbin/cron
    cupsys    8919  0.0  0.7   4668  1708 ?        SNs   2007   0:00 /usr/sbin/cupsd
    root     13827  0.0  0.4   3628   896 ?        Ss    2007   0:00 /usr/sbin/vsftp
    postfix  28702  0.0  0.6   4960  1496 ?        S    16:47   0:00 pickup -l -t fi
    root     29311  0.0  2.7  20144  6100 ?        Ss   17:01   0:00 /usr/sbin/apach
    www-data 29312  0.0  3.4  21080  7476 ?        S    17:01   0:00 /usr/sbin/apach
    www-data 29316  0.0  3.0  21336  6696 ?        S    17:01   0:00 /usr/sbin/apach
    www-data 29317  0.0  3.7  22428  8220 ?        S    17:01   0:00 /usr/sbin/apach
    www-data 29318  0.0  3.5  21352  7696 ?        S    17:01   0:01 /usr/sbin/apach
    www-data 29319  0.0  3.5  21352  7696 ?        S    17:01   0:00 /usr/sbin/apach
    www-data 29320  0.0  3.2  21608  6992 ?        S    17:02   0:00 /usr/sbin/apach
    www-data 29422  0.0  3.0  21336  6732 ?        S    17:03   0:00 /usr/sbin/apach
    root     31121  0.0  0.6   2876  1352 ?        S    17:15   0:00 /bin/sh /usr/bi
    mysql    31160  0.0  7.6 126740 16608 ?        Sl   17:15   0:00 /usr/sbin/mysql
    root     31162  0.0  0.2   1900   636 ?        S    17:15   0:00 logger -p daemo
    root     31924  0.0  1.1   7872  2544 ?        Ss   17:35   0:00 sshd: admin [pr
    admin    31940  0.0  0.7   7872  1688 ?        S    17:36   0:00 sshd: admin@pts
    admin    31941  0.4  1.4   4756  3076 pts/1    Ss   17:36   0:00 -bash
    root     31978  1.1  1.2   4244  2812 pts/1    S    17:36   0:00 /bin/bash
    root     31996  0.0  0.4   2496   940 pts/1    R+   17:36   0:00 ps aux

  7. #7
    Membre habitué
    Profil pro
    Inscrit en
    Octobre 2007
    Messages
    268
    Détails du profil
    Informations personnelles :
    Âge : 44
    Localisation : France

    Informations forums :
    Inscription : Octobre 2007
    Messages : 268
    Points : 128
    Points
    128
    Par défaut
    Solution :

    Suppression de l'install précédente avec un apt-get remove mysql-server
    Suppression des fichiers de conf mysql

    APrès on se rent compte que service mysql restart donne encore une erreur ...
    la solution est ci-dessous :


    Find your debian-sys-maint password in /etc/mysql/debian.cnf.

    Then use
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<password>' WITH GRANT OPTION;
    Replace <password> with your debian-sys-maint password.

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

Discussions similaires

  1. [Oracle 10g R2] mot de passe par défaut?
    Par eryk71 dans le forum Installation
    Réponses: 10
    Dernier message: 18/07/2011, 15h20
  2. mot de passe par défaut du cpanel
    Par fraisa1985 dans le forum Unix
    Réponses: 0
    Dernier message: 10/10/2009, 11h42
  3. Mysql:Mettre un mot de passe par défaut lors de l'installation
    Par ptitcanari dans le forum Administration système
    Réponses: 3
    Dernier message: 17/04/2009, 23h32
  4. Réponses: 2
    Dernier message: 10/04/2009, 18h26

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