mysql忘记密码
2015-08-13 15:46
537 查看
# /etc/init.d/mysql stop # mysqld_safe --user=mysql --skip-grant-tables --skip-networking & # mysql -u root mysql
mysql> use mysql mysql> update user set password=password('newpassword') where user='root'; mysql> flush privileges; mysql> quit
# /etc/init.d/mysql restart # mysql -uroot -p enter password: <输入新设的密码newpassword>
相关文章推荐
- mysql引擎分析说明整理
- mysql数据库的连接
- MySQL数据备份
- MySQL中group_concat函数-和group by配合使用
- MySQL数据库迁移(直接复制文件)
- 配置MySQL主从复制(Replication)
- MySQL常见命令和操作一览
- mysql隔离级别
- MySQL的约束问题
- 有关hibernate入门小实例--hibernate+mysql
- 修改mysql数据库root用户的密码
- mysql 输出当前月所有日期与对应的星期
- mysql重置密码
- Win7设置MySQL自启动的方法
- mysql left join right join区别以及优化收集
- mysql参数之slave_skip_errors
- mysql遇到的一些问题
- Mysql 查看连接数,状态
- 解决Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future:
- undefined function mysql_connect()解决方法