wampserver登陆mysql出现#1045 - Access denied for user 'root'@'localhost' (using password: YES) 问题

原因:mysql的用户名和密码与phpMyAdmin的配置文件的用户名密码不相对应所以连不上去

解决:

1.登陆mysql修改密码

可以用cmd控制台登陆也可以用wamp的mysql控制台mysql console登陆

->use mysql

->update user set password=password("密码") where user=‘root‘;

2.修改phpMyAdmin的配置文件的用户名密码

\wamp\apps\phpmyadmin3.4.10.1下的config.inc.php文件

$cfg[‘Servers‘][$i][‘user‘] = ‘root‘;
    $cfg[‘Servers‘][$i][‘password‘] = ‘密码‘;

3.这一步很重要,关系到你半天的努力。我就是因为这一步反复弄。

重启服务之后,重新登陆phpMyAdmin

然后出现未修改的页面#1045 - Access denied for user ‘root‘@‘localhost‘ (using password: YES)

然后最后一步就是刷新页面(注:不是重新打开phpMyAdmin而是刷新错误的页面,一般就好了)

wampserver登陆mysql出现#1045 - Access denied for user 'root'@'localhost' (using password: YES) 问题

时间: 2024-08-07 16:58:17

wampserver登陆mysql出现#1045 - Access denied for user 'root'@'localhost' (using password: YES) 问题的相关文章

mysql: 1045 access denied for user 'root'@'localhost' using password yes

原因是:root的密码错误了. 解决思路:关闭mysql服务,重新启动mysql服务,启动mysql的时候,指定不需要校验密码.然后登陆mysql,修改密码,退出.再重新启动mysql服务. 1.关闭mysql 2.启动mysql,指定不需要校验密码 C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqld --defaults-file="C:\ProgramFiles\MySQL\MySQL Server 5.1\my.ini" -

mysql提示:1045 access denied for user'root'@'localhost' using password yes

1.打开DOS进入mysql下bin目录(C:\Program Files\MySQL\MySQL Server 5.6\bin) 2.停止mysql服务,net stop  mysql 3.输入:mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server 5.6\my-default.ini" --console --skip-grant-tables 4.重新打开一个DOS窗口,进入mysql下bin目录,输入:mysql

windows mysql提示:1045 access denied for user'root'@'localhost' using password yes

一大早打开Navicat Lite for MySQL客户端,提示1045 access denied for user ’root’@’localhost’ using password yes,太不给力了,网上搜了很多资料,最终问题得以解决,下面将详细的解决过程分享给大家,希望遇到同样问题的同胞,少走弯路: 1.打开DOS进入mysql下bin目录:本人:C:\Program Files\MySQL\MySQL Server 5.1\bin     2.停止mysql服务,net stop 

MYSQL错误代码#1045 Access denied for user 'root'@'localhost'

遇到MYSQL"错误代码#1045 Access denied for user 'root'@'localhost' (using password:YES)" 需要重置root账号权限密码,这个一般还真不好解决. 不过,这几天调试的时候真的遇到了这种问题,不能跳过,必须解决才能在 本地调试程序源码,没办法,一点点解决吧. 好在遇到这种问题的情况,大有人在,所以很多就搬现成的,只要能解决问题就行了. 方法: 第一点,停止MYSQL服务,CMD打开DOS窗口,输入 "net

window 下mysql :1045 - Access denied for user ‘like’@'localhost'(using password:YES)

安装了MySQL Server 6.0,在登陆是总是提示:1045 - Access denied for user ‘like’@'localhost'(using password:YES),在网上搜索半天最终解决,特记录下解决办法: 第一步:停止mysql 服务: 第二步:修改my.ini文件,具体是在文件中[mysqld]下面添加这句: skip_grant_tables; 第三步:cmd 进入命令窗口,输入mysql -uroot -p ,输入密码: 第四步:成功登陆后,依次执行:UP

新手PHP连接MySQL数据库出问题(Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES))

我用的环境是wampServer集成的软件包 在php连接MySQL数据库的时候老是出现这个问题Warning: mysqli_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES) 你好,我也遇到过这个问题,下面是我的解决方法: 首先,通过WAMP打开mysql控制台. 提示输入密码,因为现在是空,所以直接按回车.(wamp 默认数据库密码为空) 然后输入"use mysq

windows mysql提示:1045 access denied for user 'root'@'localhost' using password yes 解决方案

简单粗暴 工具xwamp 路径:H:\xampp\mysql\bin\my.ini.php 打开my.ini,在[mysqld]下面添加 skip-external-lockingskip-name-resolveskip-grant-tables 停止mysql ->打开xwamp的shell可以输入命令,如下 Setting environment for using XAMPP for Windows. [email protected]-CGL9PRT h:\xampp # mysql

解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes

今天想用用MySQL 数据库  谁知道老提示 1045 access denied for user 'root'@'localhost' using password yes 最后在csdn 上找到了答案 来源:http://bbs.csdn.NET/topics/310006640     13楼 解决: 1. 开始 --> cmd   --> net stop mysql  (停用MySQL服务  没启动的可以省略) 2. 找到安装路径 MySQL Server 5.1下的my.ini

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

当你重装数据库后出现这个问题的时候,不要着急,首先你要去你的确定你的数据库已经成功的把服务开启了, 然后确定你的密码和账户,IP都确认的情况下, 去寻找config.inc.php 这个文件,根据配置的不同,地方可能出现在不同的地方,如果你配置的是XAMPP的时候, 可能是这个: D:\xampp\phpMyAdmin\config.inc.php 其他路径就没有进行测试了,大不了全盘检索就新行了,然后看里面的 /* Authentication type and info */ $cfg['S