Mysql找回root密码
2016-06-07 12:20
387 查看
1.关闭数据库
# killall mysqld2.使用--skip-grant-tables启动mysql,忽略授权登录验证。
# mysqld_safe --skip-grant-tables --user=mysql &3.登入数据库
# mysql4.修改密码
mysql> update mysql.user set password=password("123456") where user='root' and host='localhost'; mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)5.重启数据库
相关文章推荐
- Linux socket 初步
- Android之获取手机上的图片和视频缩略图thumbnails
- Linux Kernel 4.0 RC5 发布!
- linux lsof详解
- linux 文件权限
- Linux 执行数学运算
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户