如何破解MariaDB5.5数据库root登录密码

分类:编程技术 时间:2024-02-20 15:35 浏览:0 评论:0
0
本文将详细讲解如何破解MariaDB5.5数据库的root登录密码。文章内容质量很高,分享给大家,作为参考。希望您看完本文后能够有一定的相关知识。学习。

[root@localhost ~]# mysql -uroot -p123 忘记 root 登录密码

错误 1045 (28000):用户'root'@'localhost'访问被拒绝(使用密码:YES)

查找并运行mysqld_safe程序绕过MariaDB5.5数据库密码验证

< pre >[root@localhost ~]# find / -name mysqld_safe/usr/bin/mysqld_safe[root@localhost ~]# /usr/bin/mysqld_safe --skip-grant-tables &

直接使用mysql命令登录MariaDB5.5数据库并更改root登录密码

[root@localhost ~]# mysql欢迎使用MariaDB监控。命令以 ; 结尾或 \g.您的 MariaDB 连接 ID 是 1Server 版本:5.5.52-MariaDB MariaDB Server版权所有 (c) 2000, 2016, Oracle, MariaDB Corporation Ab 等。输入“帮助”;或“\h”寻求帮助。输入 '\c' 清除当前输入语句。MariaDB [(none)]> showdatabases;+----------------------------+ |数据库 |+--------------------------+ |信息模式|| mysql || Performance_schema |+--------------------------+集合中的 3 行(0.00 秒)MariaDB [(none)]> 使用 mysql;读取表用于完成表名和列名的信息您可以关闭此功能,以便更快地启动 -ADatabasechangeMariaDB [mysql]> UPDATE user SET password=password("New-password") WHERE user='root';Query OK, 3受影响的行(0.00 秒)匹配的行:3 已更改:3 警告:0MariaDB [mysql]> 刷新权限;查询正常,0 行受影响(0.00 秒)MariaDB [mysql]> exitBye

使用新密码 登录MariaDB5.5数据库的新密码

[root@localhost ~]# ps auUSER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot 3986 0.0 0.1 115380 2084 tty1 Ss+ 19:53 0:02 -bashroot 22483 0.0 0.1 115384 2076 点/0 Ss 21:54 0:00 -bashroot 22910 0.0 0.0 113252 1592 点/0 S 21:59 0:00 /bin/ sh /usr/bin/mysqld_safe --skimysql 23066 0.3 4.6 839268 86192 pts/0 Sl 21:59 0:00 /usr/libexec/mysqld --basedir=/usrroot 23091 0.0 0.0 151056 1824 pts/0 R+ 22:00 0 :00 ps au[root@localhost ~]# kill - 9 22910[root@localhost ~]# mysql -uroot -pNew-password欢迎来到 MariaDB 监视器。命令以 ; 结尾或 \g.您的 MariaDB 连接 ID 为 2Server 版本:5.5.52-MariaDB MariaDB Server版权所有 (c) 2000、2016、Oracle、MariaDB Corporation Ab 等。输入“帮助”;或 '\h' 寻求帮助。输入 '\c' 清除当前输入语句。MariaDB [(none)]> MariaDB [(none)]> showdatabases;+---------------- ---- +|数据库 |+--------------------+|信息模式|| mysql || Performance_schema |+---------- ----------+集合中的 3 行(0.00 秒)MariaDB [(none)]> exitBye[1]+ 已杀死 &nBSP;/usr/ bin/mysqld_safe-SKIP-GRANT-表 

使用其他密码无法登录Mariadb5.5数据库

 [root@localhost ~ ]# mysql -uroot -pNew-passworddERROR 1045 (28000): Access returned for user 'root '@'localhost' (使用密码: YES)[root@localhost ~]# rpm -qa mariadbmariadb-5.5.52-1.el7 .x86_64

这是如何破解的MariaDB5.5数据库的root登录密码。希望以上内容能够对大家有所帮助,能够学到更多的知识。如果您觉得文章不错,可以分享出去,让更多的人看到。

1. 本站所有资源来源于用户上传或网络,仅作为参考研究使用,如有侵权请邮件联系站长!
2. 本站积分货币获取途径以及用途的解读,想在本站混的好,请务必认真阅读!
3. 本站强烈打击盗版/破解等有损他人权益和违法作为,请各位会员支持正版!
4. 编程技术 > 如何破解MariaDB5.5数据库root登录密码

用户评论