phpmyadmin first login 1

phpmyadmin first login

// in config.sample.inc.php change this to true
$cfg['Servers'][$i]['AllowNoPassword'] = false;
// in config.sample.inc.php add this 
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123';
// refresh

Here is what the above code is Doing:
1. We’re setting the $cfg[‘Servers’][$i][‘AllowNoPassword’] to false. This means that we will need to enter a password to access phpMyAdmin.
2. We’re setting the $cfg[‘Servers’][$i][‘user’] to root. This is the username that we will use to access phpMyAdmin.
3. We’re setting the $cfg[‘Servers’][$i][‘password’] to 123. This is the password that we will use to access phpMyAdmin.

Now, let’s restart Apache and try to access phpMyAdmin again.

sudo service apache2 restart

Similar Posts