update refrence md

This commit is contained in:
zhh
2019-01-04 17:22:18 +08:00
parent 73214817a8
commit a42a2a4545
3 changed files with 11 additions and 1 deletions

View File

@@ -62,6 +62,11 @@ delete from emp where ename='zhangsan'
- 查看字符集show variables like 'character%'
- 创建数据库时指定字符集create database mall character set utf8
### 修改时区
- 修改mysql全局时区为北京时间即我们所在的东8区set global time_zone = '+8:00';
- 修改当前会话时区set time_zone = '+8:00'
- 立即生效flush privileges
### 权限相关
- 授予所有数据库的所有权限grant all privileges on *.* to z1@localhost identified by '123'
- 授予所有数据库的所有权限(包括grant)grant all privileges on *.* to z1@localhost with grant option