• ADADADADAD

    MySQL 5.7 忘记密码。[ mysql数据库 ]

    mysql数据库 时间:2024-12-25 09:56:58

    作者:文/会员上传

    简介:

    修改配置文件:[root@MySQL-S mysql]# vim /etc/my.cnf2.在 [mysqld] 这个模块添加以下内容。skip-grant-tables3.重启 MySQL。[root@MySQL-S mysql]# ./support-files/mysql.

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

      修改配置文件:

    [root@MySQL-S mysql]# vim /etc/my.cnf

    2.在 [mysqld] 这个模块添加以下内容。

    skip-grant-tables

    3.重启 MySQL。

    [root@MySQL-S mysql]# ./support-files/mysql.server restart

    4.用空密码进入,回车。

    [root@MySQL-S mysql]# mysql

      执行语句。

    mysql> alter user 'root'@'localhost' identified by '123456';

    6.刷新:

    mysql>flush privileges;

    或:
    update mysql.user set authentication_string=password('123456') where user='root' and Host = 'localhost';

    MySQL 5.7 忘记密码。.docx

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

    推荐度:

    下载
    热门标签: mysql忘记密码