如何在 Win 7 中从命令行更改/设置 mysqladmin pw?
我尝试这样做:
mysqladmin -u root password <password>
但出现以下错误:
mysqladmin: connect to server at 'localhost' failed.
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
可能是什么原因造成的?
这是 MySQL 的新安装,我从未配置过 MySQLadmin,或者据我所知我从未这样做过。
I tried to do:
mysqladmin -u root password <password>
But I got the following error:
mysqladmin: connect to server at 'localhost' failed.
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
What could be causing this?
This is a new install of MySQL and I have never configured MySQLadmin, or as far as I know I have never done so.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了另一种方法:
http ://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-windows
I found another way to do it:
http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-windows