centos 7 mysql 忘记密码如何找回
2018-02-07 22:09
741 查看
修改 vim /etc/my.cnf 加上一句:skip-grant-tables
1.保存并且退出。重新启动mysqld
service mysqld restart
<
9f8f
/blockquote>
2.登录并修改MySQL的root密码
mysql
use mysql;
sql: update user set authentication_string=password(‘new password’) where user=’root;
3.执行 flush privileges;
4.退出mysql。
5.删除 skip-grant-tables
6.重启mysql
1.保存并且退出。重新启动mysqld
service mysqld restart
<
9f8f
/blockquote>
2.登录并修改MySQL的root密码
mysql
use mysql;
sql: update user set authentication_string=password(‘new password’) where user=’root;
3.执行 flush privileges;
4.退出mysql。
5.删除 skip-grant-tables
6.重启mysql
相关文章推荐
- CentOS如何找回忘记的root密码
- 忘记Mysql密码如何找回解决办法
- MySQL忘记root密码后如何找回?
- Mac版mysql忘记密码如何找回
- mysql command line client 密码忘记 如何找回(不用密码直接操作)
- 【有图版】CentOS如何找回忘记的root密码
- CentOS 5.5 安装Apache+MySQL+PHP(yum直接安装,mysql自动备份,mysql忘记密码的找回方法)
- 【转】如何在忘记CentOS的root密码的情况下修改root密码。
- centos 7忘记mysql的密码是解决办法
- mysql 忘记root密码与root被删除找回方法
- centos6.5下如何修改MySQL默认用户root的密码
- MySQL忘记root密码,如何重置
- linux(centos)下mysql忘记root密码
- Mysql密码忘记如何修改
- destoon忘记密码如何找回
- CentOS下MySQL忘记root密码解决方法【转载】
- CentOS下MySQL忘记root密码解决方法
- Mysql总结_02_mysql数据库忘记密码时如何修改
- CentOS系统找回mysql登录密码
- CentOS下MySQL忘记root密码解决方法