0

On windows, I have two root users.
I deleted one and kept the local one (root@localhost).
I set its password by :

set password for 'root'@'localhost'= password('new_password');

I exit and I do :

mysql -u root

and I am in mysql.
I was waiting for the password request.

4

1 回答 1

1

您必须重新启动 mysql 或运行flush privilidges才能使新密码生效。

还可以尝试为 127.0.0.1 和 localhost 设置 root 密码。

于 2012-07-10T14:27:52.713 回答