怎么样修改mysql安装后的root空密码?

如题,装好mysql怎么样把默认的空密码给改掉?
---------------------------------------------------------------

grant select on . to root@'%' identified by "密码";

grant select on . to root@localhost identified by "密码";

运行 c:\mysql\bin\mysql.exe
然后打入这个,就行了。

Published At
Categories with Web编程
comments powered by Disqus