当前位置:网站首页>MySQL简单权限管理
MySQL简单权限管理
2022-06-25 06:42:00 【旺财2】
创建数据库
CREATE DATABASE IF NOT EXISTS `wangcai` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_ci';
创建用户wangcai111,密码123456
CREATE USER `wangcai111`@`%` IDENTIFIED BY '123456';
授权用户wangcai111给wangcai这个库所有表所有权限
GRANT ALL ON wangcai.* TO 'wangcai111'@'%';
收回wangcai111用户wangcai库下所有表的select权限
REVOKE Select ON wangcai.* FROM 'wangcai111'@'%';
边栏推荐
- Modular programming of oled12864 display controlled by single chip microcomputer
- Five causes of PCB board deformation and six solutions 2021-10-08
- JDBC-DAO层实现
- 【视频】ffplay 使用mjpeg格式播放usb摄像头
- 搞清信息化是什么,让企业转型升级走上正确的道路
- 传统的IO存在什么问题?为什么引入零拷贝的?
- How to use ad wiring for PCB design?
- Home environment monitoring system design (PC version) (mobile app version to be determined)
- 一“石”二“鸟”,PCA有效改善机载LiDAR林下地面点部分缺失的困局
- RTKLIB-b33版本中GALILEO广播星历存储问题
猜你喜欢
微信小程序开通客服消息功能开发
npm install 报错 : gyp ERR! configure error
Tips on how to design soft and hard composite boards ~ 22021/11/22
Five causes of PCB board deformation and six solutions 2021-10-08
OAuth 2.0一键登录那些事
用函数的递归来解决几道有趣的题
Chuantu microelectronics 𞓜 subminiature package isolated half duplex 485 transceiver
传统的IO存在什么问题?为什么引入零拷贝的?
饮食干预减轻癌症治疗相关症状和毒性
Modular programming of LCD1602 LCD controlled by single chip microcomputer
随机推荐
test
【日常训练】207. 课程表
一文了解 | 革兰氏阳性和阴性菌区别,致病差异,针对用药
1742. 盒子中小球的最大数量
Find out what informatization is, and let enterprises embark on the right path of transformation and upgrading
NSIS silent installation vs2013 runtime
Shell tips (134) simple keyboard input recorder
Technology blog | how to communicate using SSE
海思3559 sample解析:vio
NSIS 静默安装vs2013运行时
Four software 2021-10-14 suitable for beginners to draw PCB
【视频】ffplay 使用mjpeg格式播放usb摄像头
Runtime——methods成员变量,cache成员变量
VOCALOID笔记
[distillation] pointdistiller: structured knowledge distillationwards efficient and compact 3D detection
navicat定时任务无效
Modular programming of LCD1602 LCD controlled by single chip microcomputer
Modular programming of wireless transmission module nRF905 controlled by single chip microcomputer
Invalid Navicat scheduled task
Share the process requirements for single-layer flexible circuit board