mysql忘记管理密码的解决方法

很文博客hinvn.com 数据库评论99字数 371阅读模式
广告也精彩

mySQL忘记管理密码的解决方法 ! 如果mySQL正在运作,请先关闭.

关闭方法:文章源自很文博客https://www.hinvn.com/很文博客-https://www.hinvn.com/60146.html

service mysqld stop文章源自很文博客https://www.hinvn.com/很文博客-https://www.hinvn.com/60146.html

文章源自很文博客https://www.hinvn.com/很文博客-https://www.hinvn.com/60146.html

killall -TERM mysqld文章源自很文博客https://www.hinvn.com/很文博客-https://www.hinvn.com/60146.html

接下来,重新开启mySQL,请额外加上指令:文章源自很文博客https://www.hinvn.com/很文博客-https://www.hinvn.com/60146.html

/usr/bin/safe_mysqld --skip-grant-tables &文章源自很文博客https://www.hinvn.com/很文博客-https://www.hinvn.com/60146.html

(请注意执行程式的路径,请替换成你的程式路径)文章源自很文博客https://www.hinvn.com/很文博客-https://www.hinvn.com/60146.html

然后启动mySQL,在命令模式下键入:mysql

# mysql (这个也是,如果直接执行找不到程式,请打完整路径)

>use mysql

>update user set password=password("新密碼") where user="root";

>flush privileges;

>exit;

关闭现在执行的mySQL,重新正常启动mySQL。

启动mysql命令:

mysql -h localhost -uroot -p

password

->

工具:作品在线观看

女优:最新作品观看

中文:国语在线观看

weinxin
我的微信
扫一扫更精彩
大家的支持是我更新的动力!!!
 
广告也精彩
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证