#1045 - Access denied for user 'root'@'localhost' (using password: NO)

xusir發表於2014-09-25

解決辦法

開啟 phpmyadmin裡的config.inc.php檔案

$cfg['Servers'][$i][ 'host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['connect_type'] = 'socket';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = ''; //有密碼的話設定密碼
$cfg['Servers'][$i]['only_db'] = '';

相關文章