当前位置:网站首页>MySQL用户管理
MySQL用户管理
2022-07-23 05:41:00 【夏日入侵bug企划】
MySQL用户管理
两种方法:1、可视化软件操作;2、SQL命令
SQL命令
创建用户
create user 用户名 identified by '密码';修改密码
//修改当前用户密码 set password=password('新密码'); //修改指定用户密码 set password for 用户名=password('新密码');用户重命名
rename user 旧用户名 to 新用户名;用户授权
grant all privileges on *.* to 数据库名;//给数据库的表授予全部权限(除了给别的用户授权,root用户可以)查看权限
show grants for 数据库名;//查看指定用户的权限 show grants for root@localhost;//查看管理用户权限 //root用户权限设置源码: GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION撤销权限
revoke all privileges on *.* from 数据库名;//撤销所有权限
边栏推荐
猜你喜欢

NFT数字藏品系统开发:徐悲鸿美术馆通过数字藏品平台亮相

MySQL add, delete, modify, query & advanced query statements

利用动态规划解决最长增长子序列问题

Development of digital collection system: enterprise layout meta universe digital collection

User defined MVC usage & addition, deletion, modification and query

MySQL Index & execution plan

NFT交易平台数字藏品系统|开发定制

Eth transfer times reached a one month high

Data warehouse 4.0 notes - business data collection - sqoop

Data warehouse 4.0 notes - data warehouse environment construction - Yan configuration
随机推荐
NFT数字藏品开发/DAPP开发
kubesphere haproxy+keepalived (一)
Review of knowledge points
数仓4.0笔记——数仓环境搭建—— Yarn配置
Fed Brad: last week's employment report showed that the U.S. economy is robust and can withstand higher interest rates
mysql根据中文字段首字母排序
MySQL add, delete, modify, query & advanced query statements
数仓4.0笔记——业务数据采集
Php+ code cloud code hook automatically updates online code
數倉4.0筆記——用戶行為數據采集四
[pyrodiomics] the extracted image omics characteristic value is abnormal (many 0 and 1)
Entrepôt de données 4.0 Notes - acquisition de données sur le comportement de l'utilisateur II
[untitled]
数仓4.0笔记---用户行为数据生成
NFT数字藏品开发:京东“奇达熊带你游京城”旅游套装
Data warehouse 4.0 notes - business data collection
Usage of some, every, find, FindIndex
数仓4.0笔记——数仓建模
CTF web common software installation and environment construction
Preliminary study on DC-1 shooting range