Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting username and password in phpmyadmin

I need to set the username and password in phpmyadmin for mysql.

I think the default username is root@localhost.

I do not know how to set this.

like image 367
Sam Avatar asked Sep 05 '25 03:09

Sam


1 Answers

The 'root' user would have been setup during the initial install. If you open the config.default.php file you will see

$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '********';

This information can be changed provided you are not using 'cookie' validation. Like this

$cfg['Servers'][$i]['auth_type'] = 'cookie';
like image 156
Drewness Avatar answered Sep 07 '25 17:09

Drewness