phpMyAdminに、ユーザー名:root、パスワード:無し、でログインしたら、「パスワードなしログインは設定 (AllowNoPassword 参照) によって禁止されています」が表示されました。
phpMyAdminのconfig.inc
は
$cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['AllowRoot'] = true; $cfg['Servers'][$i]['nopassword'] = true; $cfg['Servers'][$i]['AllowNoPassword'] = true; $cfg['Servers'][$i]['AllowNoPasswordRoot'] = true; $cfg['Servers'][$i]['port'] = '21'; // MySQL port - leave blank for default port $cfg['Lang'] = '';
となっています。
また、別の方法で行ってもダメでした。(Access denied for user 'root'@' localhost' (using password: YES))
その時のコードは以下の通りです。
$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['Servers'][$i]['port'] = '21'; // MySQL port - leave blank for default port $cfg['Lang'] = '';
mysqlのポート番号は、最初3306だったものの、他と被るという理由で21にしました。
原因は何が考えられますでしょうか?
もうお手上げ状態です。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。