Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加用户鉴权模块 #132

Merged
merged 2 commits into from
Dec 11, 2019
Merged

添加用户鉴权模块 #132

merged 2 commits into from
Dec 11, 2019

Conversation

hanchuanchuan
Copy link
Owner

@hanchuanchuan hanchuanchuan commented Dec 11, 2019

实现用户连接的鉴权操作
开启鉴权方法:

  • 在 config.toml 配置文件添加以下参数(文件根节点或者[inc]节点)
skip_grant_table = false

添加以下语法支持:

  • CREATE USER
  • DROP USER
  • ALTER USER
  • SET PASSWORD FOR
  • GRANK/REVOKE 可能用不到
  • SELECT * FROM MYSQL.USER 用户查询

默认初始用户为root, 密码为空

忘记密码后可以通过跳过鉴权的方式重新启动, 修改密码后开启鉴权并重启.

@codecov
Copy link

codecov bot commented Dec 11, 2019

Codecov Report

Merging #132 into master will decrease coverage by 0.0071%.
The diff coverage is 0%.

@@               Coverage Diff                @@
##             master       #132        +/-   ##
================================================
- Coverage   60.2303%   60.2232%   -0.0072%     
================================================
  Files           369        369                
  Lines         79865      79916        +51     
================================================
+ Hits          48103      48128        +25     
- Misses        27659      27688        +29     
+ Partials       4103       4100         -3

@hanchuanchuan hanchuanchuan merged commit 2a30e04 into master Dec 11, 2019
@hanchuanchuan hanchuanchuan deleted the feature-secure branch December 11, 2019 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant