路飞学城Python-Day37

36-多表查询练习

37-权限管理
1.创建账号
本地账号
create user 'panda' @ 'loacalhost' inentified by'123'
远程账号
create user 'panda' @'192.168.31.10' inentified by'123'
create user 'panda' @'%' inentified by'123' 所有服务端都可以登录
创建完的账号是没有任何权限的,需要创造权限
2.授权
user :*.* 所有的库所有的表都有权限去查
db:db1.*
tables_priv :db1.t1.*
columns_priv:db1.t1.id,name
对权限控制的力度不同
grant select on *.* 所有的库和表的级别 
grand all  on *.* to 'panda'@'loaclhost'
并不是root,不能再授权,只有root能授权
回收权限
revoke select on *.* from 'panda'@'loaclhost'

38-Navicat工具的使用
掌握:
#1. 测试+链接数据库
#2. 新建库
#3. 新建表,新增字段+类型+约束
#4. 设计表:外键
#5. 新建查询
#6. 备份库/表
 
#注意:
批量加注释:ctrl+?键
批量去注释:ctrl+shift+?键

39-pymysql模块之基本使用

40-pymysql模块之sql注入

41-pymysql模块之增删改查

42-MySQL内置功能介绍

43-视图

44-触发器

45-存储过程

46-应用程序与数据库结合使用的三种方式

47-事务

48-函数与流程控制

49-索引原理
 
 
 
 
Win a contest, win a challenge
原文地址:https://www.cnblogs.com/pandaboy1123/p/9431113.html