[英]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.