Home > Database > Mysql Tutorial > ERROR 1045 (28000): Access denied for user'root&

ERROR 1045 (28000): Access denied for user'root&

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 15:50:16
Original
1138 people have browsed it

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:YES) 我开始以为是版本的问题,经过换了几个版本后我不这样认为了,这个错误依然顽固的存在,经过在网上查询之后解决了该问题。先记录下来以备查。 在“运行”中输入cmd进入

ERROR 1045 (28000): Access denied for user'root'@'localhost'(using password:YES)

我开始以为是版本的问题,经过换了几个版本后我不这样认为了,这个错误依然顽固的存在,经过在网上查询之后解决了该问题。先记录下来以备查。

在“运行”中输入cmd进入命令行模式。
在mysql的安装目录的bin下把mysql.exe拖入命令行窗口,回车。
进入了mysql后输入:mysql -u root
输入:use mysql
输入:update user set password=old_password('scf') where user='root' and host='localhost' ;
输入:FLUSH PRIVILEGES;
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
PHP parsing error: syntax error, unexpected '
From 1970-01-01 08:00:00
0
0
0
Report an error
From 1970-01-01 08:00:00
0
0
0
Error when uploading file format error
From 1970-01-01 08:00:00
0
0
0
html5 - EventSource error
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template