博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
mysql5.7修改密码
阅读量:3987 次
发布时间:2019-05-24

本文共 454 字,大约阅读时间需要 1 分钟。

方法1

alter user 'root'@'localhost' identified by 'xaS@DrxGA#B*fXsq#g';flush privileges;

方法2

set password for 'root'@'localhost'=password('xaS@DrxGA#B*fXsq#g');flush privileges;

方法3

update mysql.user set authentication_string=password('xaS@DrxGA#B*fXsq#g') where User='root' and Host = 'localhost';update mysql.user set authentication_string=password('xaS@DrxGA#B*fXsq#g') where User='root' and Host = '%';flush privileges;

不需要重启服务,但是需要执行 flush privileges;

转载地址:http://mbaui.baihongyu.com/

你可能感兴趣的文章
[转载]CSDN精选iPhone开发博客
查看>>
捕鱼忍者(ninja fishing)之游戏指南+游戏攻略+游戏体验
查看>>
iphone开发基础之objective-c学习
查看>>
iphone开发之SDK研究(待续)
查看>>
计算机网络复习要点
查看>>
Variable property attributes or Modifiers in iOS
查看>>
NSNotificationCenter 用法总结
查看>>
C primer plus 基础总结(一)
查看>>
微服务相关问题(一)
查看>>
剑指offer算法题分析与整理(一)
查看>>
剑指offer算法题分析与整理(二)
查看>>
剑指offer算法题分析与整理(三)
查看>>
剑指offer算法题分析与整理(四)
查看>>
剑指offer算法题分析与整理(五)
查看>>
部分笔试算法题整理
查看>>
Ubuntu 13.10使用fcitx输入法
查看>>
pidgin-lwqq 安装
查看>>
mint/ubuntu安装搜狗输入法
查看>>
C++动态申请数组和参数传递问题
查看>>
opencv学习——在MFC中读取和显示图像
查看>>