• ADADADADAD

    mysql密码忘记了怎么办[ mysql数据库 ]

    mysql数据库 时间:2024-12-03 10:31:06

    作者:文/会员上传

    简介:

    1. 停止mysql服务[root@db02data]#/etc/init.d/mysqldstopShuttingdownMySQL..SUCCESS!2. 使用--skip-grant-tables启动mysql,忽略授权登录验证[root@db02data]#mysqld_safe-

    以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。

    1. 停止mysql服务

    [root@db02data]#/etc/init.d/mysqldstopShuttingdownMySQL..SUCCESS!

    2. 使用--skip-grant-tables启动mysql,忽略授权登录验证

    [root@db02data]#mysqld_safe--skip-grant-tables--user=mysql>/dev/null2>&1&[1]30246

    3. 登录mysql,修root密码

    [root@db02data]#mysqlmysql>UPDATEmysql.userSETpassword=PASSWORD("123")WHEREuser='root'andhost='localhost';QueryOK,0rowsaffected(0.00sec)Rowsmatched:1Changed:0Warnings:0mysql>flushprivileges;QueryOK,0rowsaffected(0.01sec)mysql>quitBye

    4. 退出mysql,并且重新启动mysql

    [root@db02data]#/etc/init.d/mysqldstopShuttingdownMySQL..SUCCESS![1]+Donemysqld_safe--skip-grant-tables--user=mysql>/dev/null2>&1[root@db02data]#/etc/init.d/mysqldstartStartingMySQL.SUCCESS!


    mysql密码忘记了怎么办.docx

    将本文的Word文档下载到电脑

    推荐度:

    下载
    热门标签: 密码mysql