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