Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
4fe75af8
Commit
4fe75af8
authored
Dec 12, 2018
by
zhh
Browse files
Update mysql.md
parent
758046c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
document/reference/mysql.md
View file @
4fe75af8
...
...
@@ -60,4 +60,14 @@ delete from emp where ename='zhangsan'
### 字符集相关
-
查看字符集:show variables like 'character%'
-
创建数据库时指定字符集:create database test1 character set utf8
\ No newline at end of file
-
创建数据库时指定字符集:create database test1 character set utf8
### 权限相关
-
授予所有数据库的所有权限:grant all privileges on
*.*
to z1@localhost identified by '123'
-
授予所有数据库的所有权限(包括grant):grant all privileges on
*.*
to z1@localhost with grant option
-
授予SUPER PROCESS FILE权限:grant super,process,file on
*.*
to z3@localhost
-
只授予登录权限:grant usage on
*.*
to z4@localhost
-
查看账号权限:show grants for z1@localhost
-
修改自己的密码:set password = password('123')
-
管理员修改他人密码:set password for 'z1'@'localhost' = password('123')
-
删除账号:drop user z2@localhost
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment