下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、-desc|grep |awk-(以下操作都是以 1. 登陆进行 登陆-desc|grep |awk-(以下操作都是以 1. 登陆进行 登陆连接(登陆)权限,建立一个用户,就会自动授予其 usage 权限(默认授予grantusageon*.*top1localhost identifiedby123;该权限只能用于数据库登陆,不能执行任何操作;且 usage 权限不能被回收,也即 REVOKE 用户并不能删除用户。grantselectonpyt.*toselect * from grant create on pyt.* to create grantcreate routine on p
2、yt.* to create routine自动授EXECUTE, ALTER ROUTINE权限给它的show grants for Grants for |GRANT USAGE ON *.* TO p1localhost IDENTIFIED BY *23AE809DDACAF96AF0FD78ED04B6A265E05AA257 | GRANT EXECUTE, ALTER ROUTINE ON PROCEDURE _shop1 p1localhost createtemporarytablestables必须有 create temporary tables 的权限,才
3、可以使用 create temporary grant create temporary tables on pyt.* to mydev -h localhost -u p1 -p create temporary table 6. create grantcreateviewonpyt.*tocreate view v_shop 7. create ect price from grantcreateviewonpyt.*tocreate view v_shop 7. create ect price from grant create user *.* to grant insert o
4、n *.* to alter table shop modify dealer char(15);alter o . QueryOK,0alterroutineonpyt.*top1 localhost; procedure pro_shop;rows affected (0.00 revokealterroutineonpyt.*from mydev-hlocalhost-up1-pdrop procedure pro_shop; ERROR1370(42000):alterroutined denied to p1localhost for routine updateshopsetpri
5、ce=3.5 wherearticle=0001and )drop view vi_name; drop index in_name;14. show DATABASES 权限。show | Database |pyt |test show |pyt |test show grant show view on pyt.* to show create view grant index on pyt.* to p1localhost; createindexix_shoponshop(article); drop index ix_shop on shop;call| article | 000
6、1 | 0001 select | a | 2 locklock grantlocktablesonpyt.*to lock tables a1 read;unlock 有了 REFERENgrant reload on pyt.* to ERROR1221 (HY000): Incorrect usage of DB GRANT and GLOBAL grantreloadon*.*top1localhost; Query OK, 0 rowsaffected (0.00 sec)flush 21. replication show master ERROR1227(42000):privi
7、lege for this grant Replication nt on *.* to grantsuperon*.*toshow master grantreloadon*.*top1localhost; Query OK, 0 rowsaffected (0.00 sec)flush 21. replication show master ERROR1227(42000):privilege for this grant Replication nt on *.* to grantsuperon*.*toshow master | File ition | Binlog_Do_DB |
8、Binlog_Ignore_DB |-bin.000006 | 2111 | | show slave 22. replication show slave ERROR1227(42000):sdenied;needtheprivilege for this show binlog ERROR1227(42000):sdenied;needtheprivilege for this grantreplicationslaveon*.*toshowslavehosts; Empty set (0.00 sec)showbinlog| Log_name | Event_type | Server_
9、id| |Info |-bin.000005|4|Format_desc|1|98|Serverver:5.0.77-Binlog ver: 4 | -bin.000005|98|Query|1|197|use ; table 23.:mydev adminmydev ERROR2002(HY000):Cantconnecttoserverthrough.sock $cd/u01/ bin$ ./ d_safe grantgrantGrantoptiononpyt.*togrant select on pyt.* to 25. ooutfile和load.sock $cd/u01/ bin$
10、./ d_safe grantgrantGrantoptiononpyt.*togrant select on pyt.* to 25. ooutfile和loaddatainfile操作file, grant file on *.* to load data infile 26. otable URGE MASTER LOGSgrant super on *.* to purge master logs before -27. sSHOWshow | Id | User | Host | db d | Time | e | Info | 12 | p1 | localhost | pyt | Query | 0 | NULL | show
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2023一年级数学下册 6 100以内的加法和减法(一)2两位数加一位数、整十数练习课(1)配套说课稿 新人教版
- 2024-2025学年新教材高中政治 第一课 社会主义从空想到科学、从理论到实践的发展 2 科学社会主义的理论与实践(1)说课稿 部编版必修1
- 2016年秋八年级生物上册 第5单元 第1章 第7节 哺乳动物说课稿 (新版)新人教版
- 2023三年级数学下册 第七单元 长方形和正方形的面积7.3 认识面积单位说课稿 冀教版001
- 5这些事我来做(说课稿)2023-2024学年统编版道德与法治四年级上册
- 2024-2025学年学年高二英语下学期第4周说课稿(选修6Module 1)
- 2024-2025学年高中语文 第6课 孔雀东南飞(并序)说课稿 新人教版必修2
- 2023七年级语文上册 第六单元 21女娲造人说课稿 新人教版
- 8红楼春趣 说课稿-2023-2024学年语文五年级下册统编版
- 2024秋一年级道德与法治上册 第8课 上课了说课稿 新人教版
- 借名买车的协议书范文范本
- 《2024 ESC血压升高和高血压管理指南》解读
- 历史公开课《第1课中华人民共和国成立》教案教学设计-第1课中华人民共和国成立-初二下册历史
- 北京中考英语词汇表(1600词汇)
- 20世纪西方音乐智慧树知到期末考试答案章节答案2024年北京大学
- 塑料 聚氨酯生产用聚醚多元醇 碱性物质含量的测定
- 运动技能学习与控制课件第十二章运动技能学习的反馈
- 食材配送售后服务方案
- 2024年浙江省温州市中考一模语文试题
- 《陆上风电场工程设计概算编制规定及费用标准》(NB-T 31011-2019)
- 精神科医生培训课件
评论
0/150
提交评论