Home >Backend Development >PHP Tutorial >ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

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

WBOY
WBOYOriginal
2016-06-06 20:49:301231browse

首次使用phpnow中的MySQL,phpMyAdmin能打开,但是在cmd中不能打开,出现以下错误: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

谢谢回答!

回复内容:

首次使用phpnow中的MySQL,phpMyAdmin能打开,但是在cmd中不能打开,出现以下错误: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

谢谢回答!

<code>mysql -u 用户名 -p
</code>
Statement:
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