1.mysql安装:http://www.centoscn.com/mysql/2016/0626/7537.htmlhtml
2.修改初始化密码:http://blog.csdn.net/ljbmxsm/article/details/50612777mysql
3.出现改不了密码的状况则要刷新权限:flush privileges;sql
4.重置密码:centos
update user set authentication_string=password('yj13560177207') where user='root'
4.运行远程链接:.net
mysql>update user set host = '%' where user ='root'; mysql>flush privileges;
5.code
安装完mysql 以后,登录之后,无论运行任何命令,老是提示这个htm
step 1: SET PASSWORD = PASSWORD('your new password');blog
step 2: ALTER USER 'root'@'localhost' PASSWORD EXPIRE NEVER;string
step 3: flush privileges;io