这可能看起来有些冗余,但我无法找到正确的解决方案。
我无法使用mysql控制台登录mysql。它正在要求密码,但我不知道我实际输入了什么。(是否有办法获取密码或更改密码?)这是我的config.inc文件的内容。
当我尝试打开phpmyadmin时,我遇到了这个错误(#1045 - 用户'root'@'localhost'被拒绝访问(使用密码:是))。
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'prakash123';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
/* rajk - for blobstreaming */
$cfg['Servers'][$i]['bs_garbage_threshold'] = 50;
$cfg['Servers'][$i]['bs_repository_threshold'] = '32M';
$cfg['Servers'][$i]['bs_temp_blob_timeout'] = 600;
$cfg['Servers'][$i]['bs_temp_log_threshold'] = '32M';
?>
我尝试卸载(并删除所有相关文件)WAMP并重新安装,但这也没有帮助。 在重新安装WAMP服务器时,它没有要求任何用户名密码信息,我不知道为什么。 非常感谢任何帮助。