XAMPP MySQL password setting (Can not enter in PHPMYADMIN)

前端 未结 8 1470
失恋的感觉
失恋的感觉 2020-12-24 03:52

Firstly: I am cannot entering PHPMYADMIN at \"localhost:80/phpmyadmin/\". Because when I install MySQL server mysql-5.5.36 with Username :root an

相关标签:
8条回答
  • 2020-12-24 04:04

    If you can not authenticate via the web interface (localhost/phpmyadmin/) then try change authentication type to cookie.

    $cfg['Servers'][$i]['auth_type'] = 'cookie';

    0 讨论(0)
  • 2020-12-24 04:06

    If all the other answers do not work for you check the config.inc.php for the following:

    $cfg['Servers'][$i]['host'] = '127.0.0.1';
    

    …and add the port of MySQL set in your XAMPP as shown below:

    $cfg['Servers'][$i]['host'] = '127.0.0.1:3307';
    

    Stop MySQL from XAMPP and restart MySQL.

    Open a fresh page for http://localhost:8012/phpmyadmin/ and check.

    0 讨论(0)
  • 2020-12-24 04:10

    user: root

    password: [blank]

    XAMPP v3.2.2

    0 讨论(0)
  • 2020-12-24 04:21

    MySQL multiple instances present on Ubuntu.

    step 1 : if it's listed as installed, you got it. Else you need to get it.

    sudo ps -A | grep mysql

    step 2 : remove the one MySQL

    sudo apt-get remove mysql

    sudo service mysql restart

    step 3 : restart lamp

    sudo /opt/lampp/lampp restart

    0 讨论(0)
  • 2020-12-24 04:22

    Find the below code in xampp/phpmyadmin/config.inc.php

    $cfg['Servers'][$i]['controluser']  = 'user_name/root';   
    $cfg['Servers'][$i]['controlpass']  = 'passwaord';
    $cfg['Servers'][$i]['auth_type']    = 'config';
    $cfg['Servers'][$i]['user']         = 'user_name/root';
    $cfg['Servers'][$i]['password']     = 'password';
    

    Replace each statement above with the corresponding entry below:

    $cfg['Servers'][$i]['controluser']  = 'root';   
    $cfg['Servers'][$i]['controlpass']  = 'xxxx';
    $cfg['Servers'][$i]['auth_type']    = 'config';
    $cfg['Servers'][$i]['user']         = 'root';
    $cfg['Servers'][$i]['password']     = 'xxxx';
    

    Doing this caused localhost/phpmyadmin in the browser and the MySQL command prompt to work properly.

    0 讨论(0)
  • 2020-12-24 04:23

    1.open your xampp dir ( c:/xampp )

    2.to phpMyadmin dir [C:\xampp\phpMyAdmin]

    3.open [ config.inc.php ] file with any text editor

    $cfg['Servers'][$i]['auth_type'] = 'config'; //replace 'config' to ‘cookie’
    $cfg['Servers'][$i]['AllowNoPassword'] = true; //change ‘true’ to ‘false’.
    

    last : save the file .

    here is a video link in case you want to see it in Action [ click Here ]

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