标签:flush p12 date 命令 localhost 功能 修改 root 修改密码
a.登陆mysql> set password for root@localhost = password(‘123‘);
b.命令行 mysqladmin -uroot -p123456 password 123
c.mysql> use mysql; #切换到mysql库
mysql> update user set password=password(‘123‘) where user=‘root‘ and host=‘localhost‘;
mysql> flush privileges;
标签:flush p12 date 命令 localhost 功能 修改 root 修改密码
原文地址:http://www.cnblogs.com/alotus0/p/6767770.html