Mysql 密码破解
来源:互联网 发布:淘宝sns 编辑:程序博客网 时间:2024/06/07 00:45
Centos下忘记mysql的root密码的解决方法
一:(停掉正在运行的mysql)
[root@NetDakVPS ~]# service mysqld stop
二:使用 “--skip-grant-tables”参数重新启动mysql
[root@NetDakVPS ~]# mysqld_safe --skip-grant-tables &
[1] 23810
Starting mysqld daemon with databases from /var/lib/mysql
三:用root帐号登录mysql
[root@NetDakVPS ~]# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.0.77 Source distributionType 'help;' or '\h' for help. Type '\c' to clear the buffer.
四:改变用户数据库
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -ADatabase changed
五:修改密码,记得密码要用password()函数进行加密
mysql> update user set password=password('netdak') where user='root';
Query OK, 1 row affected (0.04 sec)
Rows matched: 1 Changed: 1 Warnings: 0
六:加上权限
grant all on mysql.* to 'root'@'localhost' identified by 123456;
七:刷新权限表
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
八:退出mysql
mysql> quit
Bye
九:对mysql进行重启
[root@NetDakVPS ~]# s
- mySql密码破解
- mysql密码破解
- 破解mysql root密码
- mysql root密码破解
- Mysql 密码破解
- 破解mysql root密码
- mysql数据库密码破解
- Mysql 密码破解
- mysql 密码破解
- 破解本地的Mysql密码
- 破解本地的Mysql密码
- mysql密码忘记如何破解
- 破解本地MySQL数据库密码
- windows下破解mysql密码
- MySQL 密码丢失破解过程
- linux mysql 破解root 密码
- 提权后的MYSQL密码破解
- linux mysql 破解root 密码
- Struts2:通过action标签向页面传值
- Servlet 工作原理
- PHP过滤XSS攻击的函数
- was8.5 plgin1.1 ok
- 含有return 的try catch finally的执行顺序
- Mysql 密码破解
- Java的移位操作(收集+纠正)
- 条款1:视C++为一个语言联邦
- C++ OpenCV 实现RGB彩色图像转化成灰度图像再转换成二值图像
- eclipse/myeclise 自定义注释中的变量名称
- Spring 3.1包详解
- 我们该如何设计数据库(四)
- Mysql 主从备份,SQL语句的备份
- FLTK学习笔记一