プロが教えるわが家の防犯対策術!

phpMyAdmin にログインできません。
ユーザー名 : root
パスワード : password
でログインしようとすると、
#1045 MySQL サーバにログインできません
とでます。

MySql 5.6
phpMyAdmin 4.4.14.1-all-languages

よろしくお願いします。

質問者からの補足コメント

  • まず、config.inc.php がありませんでした。
    config.sample.inc.php をコピーしましたが、これでよろしかったでしょうか?

    $cfg['Servers'][$i]['user']
    $cfg['Servers'][$i]['password']
    がありませんでした。
    追加しましたが、よろしかったでしょうか?

    No.1の回答に寄せられた補足コメントです。 補足日時:2015/09/20 11:06
  • 関係しそうな個所をあげます。
    * User used to manipulate with storage */
    $cfg['Servers'][$i]['controlhost'] = 'localhost';
    $cfg['Servers'][$i]['controlport'] = '';
    $cfg['Servers'][$i]['controluser'] = 'root';
    $cfg['Servers'][$i]['controlpass'] = 'password';
    $chg['Servers'][$i]['user'] = 'root';
    $chg['Servers'][$i]['password'] = 'password';

      補足日時:2015/09/20 11:07
  • /* Authentication type */
    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    /* Server parameters */
    $cfg['Servers'][$i]['host'] = 'localhost';
    $cfg['Servers'][$i]['connect_type'] = 'tcp';
    $cfg['Servers'][$i]['compress'] = false;
    $cfg['Servers'][$i]['AllowNoPassword'] = false;

      補足日時:2015/09/20 11:08

A 回答 (1件)

config.inc.phpの


$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] =  <--- を確認。
この回答への補足あり
    • good
    • 0

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!