134

phpMyAdminの「ルート」という言葉はどういう意味ですか?

アドレスバーに何かを書くたびにlocalhost/phpmyadmin、ユーザー名とパスワードの入力を求められますが、それらが何なのかわかりません。いつ、どこで設定したか覚えていません。phpMyAdmin にログインするためのユーザー名とパスワードはどこから取得できますか?

4

6 に答える 6

16

Sometimes it doesn't get login with username = root and password, then you can change the default settings or the reset settings.

Open config.inc.php file in the phpmyadmin folder

Instead of

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

change it to:

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

Do not specify any password and put the user name as it was before, which means root.

E.g.

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

This worked for me after i had edited my config.inc.php file.

于 2015-12-07T12:58:28.337 に答える
2
mysql> SET PASSWORD for 'root'@'localhost' = password('yournewpassword');

これをチェックしてください... https://hsnyc.co/how-to-set-the-mysql-root-password-in-localhost-using-wamp/

于 2016-12-15T21:26:57.750 に答える