首页 > 数据库技术 > 详细

设置mysql8.0.12-root的密码

时间:2018-10-05 16:00:45      阅读:160      评论:0      收藏:0      [点我收藏+]
# /etc/init.d/mysqld stop # mysqld_safe --skip-grant-tables & # mysql mysql> update mysql.user set authentication_string=‘‘ where user=‘root‘; mysql> flush privileges; mysql> alter user ‘root‘@‘%‘ identified by ‘123‘; mysql> quit # service mysqld restart # mysql -uroot -p‘123‘ 用新的密码登陆成功

设置mysql8.0.12-root的密码

原文:http://blog.51cto.com/13480443/2293960

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!