天道酬勤,学无止境

MySQL 密码

MySQL5.7.30忘记密码解决方案

第一步:配置文件中去掉认证编辑my.cnf服务配置文件 [mysqld]段段中加入 skip-grant-tables语句第二步:本地root登陆[root@mysql0006 bin]# ./mysql -uroot -p Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.7.30-log Source distribution Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.第三步:查看所有数据库mysql> show databases; +--------------------+ |

2021-04-19 12:41:45    分类:博客    MySQL 密码   数据库