Search code examples
mysqlphpmyadmin

How to get phpmyadmin username and password


I have intalled phpmyadmin recently in my system. Now I lost its username and password. I tried the below methods for login.

in etc/phpmyadmin/config.inc.php I activated the AllowNoPassword

$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;


Solution

  •  Step 1:
    
        Locate phpMyAdmin installation path.
    
        Step 2:
    
        Open phpMyAdmin>config.inc.php in your favourite text editor.
    
        Step 3:
    
        $cfg['Servers'][$i]['auth_type'] = 'config';
        $cfg['Servers'][$i]['user'] = 'root';
        $cfg['Servers'][$i]['password'] = '';
        $cfg['Servers'][$i]['extension'] = 'mysqli';
        $cfg['Servers'][$i]['AllowNoPassword'] = true;
        $cfg['Lang'] = '';