[英]Unable to connect with mysql (forgot password)
I am using xampp-1.7.2 on windows-7. 我在Windows-7上使用xampp-1.7.2。 I forgot my mysql password or some other setting is done wrongly.
我忘记了mysql密码或其他设置错误。 Even I am not able to use localhost/phpmyadmin.
即使我不能使用localhost / phpmyadmin。 It is giving below error-
它给出以下错误-
1045 - Access denied for user 'root'@'localhost' (using password: YES)
1045-用户'root'@'localhost'的访问被拒绝(使用密码:是)
I reinstalled the xammp as well but still the same problem is occurring. 我也重新安装了xammp,但是仍然发生相同的问题。 Kindly suggest how this problem can be addressed.
请提出如何解决此问题。
https://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
Have a look ;) 看一看 ;)
cmd: or wherever xampp/mysql/bin exists cmd:或存在xampp / mysql / bin的任何地方
C:\> cd "C:\Program Files\MySQL\MySQL Server 5.0\bin"
C:\> mysqld -nt --init-file=C:\\mysql-init.txt
mysql-init.txt: mysql-init.txt:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.