

下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 工程造价专业说课课件
- 教学课件评价特色
- 道路运输企业班组与驾驶员安全协议
- 品牌连锁加盟商铺授权合同范本
- 高端酒店餐饮管理权委托合同范本
- 设备生产通信电子等行业知识考试试卷真题及答案
- 安全文化评估与员工安全责任意识强化考核试卷
- 智慧酒店智能客房环境控制技术研究考核试卷
- 路基病害处理施工现场安全管理考核试卷
- 皮肤病治疗误区解析考核试卷
- 2025年广东省高考生物真题(解析版)
- 2025年7月自考13811绩效管理试题及答案含解析
- 2025年中学教师资格考试《综合素质》教育法律法规经典案例分析及强化试题集(含答案)
- CGF生长因子在口腔医学中的应用
- 互联网新闻信息服务安全评估报告模板(2025年7月修订)
- (2025)公文写作考试题库(含答案)
- 轻质碳酸钙的应用及其发展前景
- GB/T 34882-2017钢铁件的感应淬火与回火
- 道路工程投资估算表模板
- 2023年成都市成华发展集团有限责任公司招聘笔试模拟试题及答案解析
- 蓄电池安装工程分项工程质量验收记录表
评论
0/150
提交评论