关于MYSQL跟phpmyadmin 连接问题

来源:百度知道 编辑:UC知道 时间:2024/06/05 09:10:34
请问我用PHPmyadmin 访问不在数据库是什么原因啊
上面写到 错误 #1045-access denied for user 'root'@'localhost'(using password:no) 这句话是什么意思啊

这句话的意思是:你提供用户root(无密码)不能登录本地的MYSQL服务器。

你需要做的是修改config.inc.php文件,设置里面的以下三行:
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed