此情况用于mysql密码为空。
命令如下:
Mysqladmin –uroot password root1234
Root是用户名,root1234是新设置的密码
如何设置mysql登陆密码?
原文:http://www.cnblogs.com/lovebing/p/6529282.html