简体   繁体   English

尝试更改MySQL根密码时遇到“拒绝访问”错误

[英]An error is encountered as “Access is denied” when trying to change MySQL root password

I tried to change the root password of MySQL server by following MySQL Documentation . 我试图通过遵循MySQL文档来更改MySQL服务器的根密码。

But I get an error as Access is denied when I'm at Step 6 . 但是我遇到错误,因为在执行步骤6访问被拒绝 Refer the below attachment as well. 也请参考以下附件。

在此处输入图片说明

Can someone tell me how to resolve this problem? 有人可以告诉我如何解决这个问题吗?

try to follow given url steps, I hope it will work 尝试按照给定的url步骤,希望它能工作

https://dev.mysql.com/doc/refman/5.6/en/resetting-permissions.html https://dev.mysql.com/doc/refman/5.6/en/resetting-permissions.html

In step 6 of documentation they tell you how to start your database then they put alternative syntax if your my.ini file is located elsewhere 在文档的第6步中,他们告诉您如何启动数据库,然后在my.ini文件位于其他位置时放置其他语法。

Here your first command mysqld --init-file=C:\\mysql-init.txt worked properly so the file C:\\mysql-init.txt is in use so you can't start database using same file mysql-init.txt which is in use so there is a message "Access is denied" 在这里,您的第一个命令mysqld --init-file = C:\\ mysql-init.txt正常工作,因此使用了文件C:\\ mysql-init.txt,因此您无法使用同一文件mysql-init.txt来启动数据库。正在使用中,因此出现消息“访问被拒绝”

So as your database is started properly, you can go forward to step 7 因此,当您的数据库正常启动时,您可以继续执行步骤7

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 接收错误:尝试访问本地主机时,“拒绝访问用户&#39;root&#39;@&#39;localhost&#39;(使用密码:是)” - Receiving error: 'Access denied for user 'root'@'localhost' (using password: YES)' when trying to access localhost mysqldump:在尝试连接时出现错误:1045:“用户&#39;root&#39;@&#39;localhost&#39;的访问被拒绝(使用密码:NO)” - mysqldump: Got error: 1045: "Access denied for user 'root'@'localhost' (using password: NO)" when trying to connect Rails mysql 用户'root'@'localhost'的访问被拒绝(使用密码:否)错误 - Rails mysql Access denied for user 'root'@'localhost' (using password: NO) error # <Mysql2::Error: Access denied for user 'root'@'localhost' (using password: NO)> - #<Mysql2::Error: Access denied for user 'root'@'localhost' (using password: NO)> 用户 &#39;root&#39;@&#39;localhost&#39; 访问被拒绝(使用密码:YES)(Mysql::Error) - Access denied for user 'root'@'localhost' (using password: YES) (Mysql::Error) 错误 1045 (28000):通过 Python 连接到 MySQL 时,用户 'root'@'localhost'(使用密码:YES)的访问被拒绝 - ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) when connecting to MySQL through Python 尝试安装 Livezilla 时 XAMPP MySQL 错误,主机或登录无效! 1045:root@localhost 拒绝访问 - XAMPP MySQL error when trying to install Livezilla, invalid host or login! 1045: access denied for root@localhost NodeJS/mySQL - ER_ACCESS_DENIED_ERROR 用户 'root'@'localhost' 的访问被拒绝(使用密码:是) - NodeJS/mySQL - ER_ACCESS_DENIED_ERROR Access denied for user 'root'@'localhost' (using password: YES) mysqlcheck返回错误消息mysqlcheck:得到错误:1045:尝试连接时,用户&#39;root&#39;@&#39;localhost&#39;的访问被拒绝(使用密码:NO) - mysqlcheck return error message mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect Win 10,MySQLDump 给出错误“mysqldump: Got error: 1045: Access denied for user &#39;=root&#39;@&#39;localhost&#39; (using password: YES) 当尝试连接时” - Win 10, MySQLDump gives error “mysqldump: Got error: 1045: Access denied for user '=root'@'localhost' (using password: YES) when trying to connect”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM