phpMyAdmin access denied for user 'root'@'localhost' (using password: NO)

前端 未结 15 1795
北海茫月
北海茫月 2021-02-01 06:18

I am unable to connect to my MySQL in xampp I have this error:

MySQL said: Documentation

1045 - Access denied for user \'root\'@\'localhost\'

相关标签:
15条回答
  • 2021-02-01 07:03

    @guzuer

    Change the value of

    $cfg['Servers'][$i]['user'] = 'groot';
    $cfg['Servers'][$i]['password']='groot';
    

    in your ~/xampp/phpMyAdmin/config.inc.php

    Here my username is groot and password is groot.

    At the time of writing this answer, I had this issue and i fixed it by looking up your question.

    0 讨论(0)
  • 2021-02-01 07:09

    Edit the file xampp/mysql/bin/my.ini

    Add

    skip-grant-tables
    

    under [mysqld]

    0 讨论(0)
  • 2021-02-01 07:10

    Check /etc/phpmyadmin/config-db.php file

    1. Go to terminal
    2. run vi /etc/phpmyadmin/config-db.php
    3. check the information
    4. Hit Ctrl + X
    5. Try login to phpmyadmin again through the web using the information from the config file.
    0 讨论(0)
  • 2021-02-01 07:14

    Please run and re reconfigure your phpmyadmin

    sudo dpkg-reconfigure phpmyadmin

    0 讨论(0)
  • 2021-02-01 07:16

    Go got XAMPP->mysql->bin->my.ini

    open the file with an editor and add 'skip-grant-tables' after mysql.

    0 讨论(0)
  • 2021-02-01 07:18
    $cfg['Servers'][$i]['auth_type'] = 'HTTP';
    $cfg['Servers'][$i]['user'] = 'root';
    $cfg['Servers'][$i]['password'] = '1234';
    

    This solves my problem too. It just logs in automatically.

    0 讨论(0)
提交回复
热议问题