惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 司徒正美
Google Online Security Blog
Google Online Security Blog
博客园_首页
量子位
大猫的无限游戏
大猫的无限游戏
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
Vercel News
Vercel News
GbyAI
GbyAI
Y
Y Combinator Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
Cisco Blogs
IT之家
IT之家
A
Arctic Wolf
P
Privacy International News Feed
G
GRAHAM CLULEY
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
The Blog of Author Tim Ferriss
AWS News Blog
AWS News Blog
A
About on SuperTechFans
P
Proofpoint News Feed
I
Intezer
月光博客
月光博客
Cloudbric
Cloudbric
Google DeepMind News
Google DeepMind News
T
Tor Project blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
www.infosecurity-magazine.com
www.infosecurity-magazine.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Securelist
Engineering at Meta
Engineering at Meta
爱范儿
爱范儿
F
Full Disclosure
V2EX - 技术
V2EX - 技术
Last Week in AI
Last Week in AI
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
人人都是产品经理
人人都是产品经理
C
Check Point Blog
I
InfoQ
S
Security Affairs
Simon Willison's Weblog
Simon Willison's Weblog
P
Palo Alto Networks Blog
F
Fortinet All Blogs
S
Security @ Cisco Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
K
Kaspersky official blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security

博客园 - 轻舟软件

轻舟分公司协作平台:统一管理、高效协作 [ERR] 1118 - Row size too large (> 8126) IDEA中Java代码修改后及时生效的方法 python SQLite 访问组件 AI课堂笔记:AI编程 轻舟项目管理系统:台账・文件・协作・管控,让项目告别混乱,有序可控! 分公司项目的柔性管理(造价咨询、招标代理) 咨询行业——项目费用管控 咨询行业——项目管理模型 Java8:函数式接口、Lambda、Stream Java知识图谱(转) 简约至上 软件需求分析方法论(转) EasyUI的属性、事件、方法的使用 两位小数偶感 什么是函数? HQL分页查询、分组查询 MySql 、Oracle 获取表结构和字段信息 马云卸任演讲全文(2019-09-10)
MySQL权限管理常用命令
轻舟软件 · 2019-07-16 · via 博客园 - 轻舟软件

1、进入mysql命令行。

(1)SSH连接:
mysql -u root -p
输入root密码

(2)Navicat for MySQL中:
右击连接,选择“命令列界面..”

2、mysql环境操作

(1)创建用户
Mysql> create user 'USERNAME'@'%' identified by 'PASSWORD';
Mysql> create user 'ljf'@'%' identified by '123456';
注:% 匹配任务访问来源,任意IP

(2)更改用户名
Mysql> rename user OLD_NAME to NEW_NAME;
Mysql> rename user ljf to zy;

(3)修改密码
mysql> set password for 用户名@localhost = password('新密码');
mysql> set password for ljf = password('ljf123');

(4)查询所有用户
mysql> select user,host,password from mysql.user;

(5)删除用户
Mysql> drop user 'USERNAME'@'HOST';
Mysql> drop user ljf;

(6)用户授权
Mysql> grant all on rulian.* to ljf@'%' identified by '123456';
Mysql> grant select,insert,update,delete,alter,create,create view,show view,execute,index on rulian.* to ljf@'%' identified by '123456';
注:一是全部操作授权,一是针对性操作授权。

(7)移除授权;
Mysql> revoke all on rulian.* from 'ljf'@'%';

(8)刷新授权表;
Mysql> flush privileges;
注:用于配置即时生效。

(9)退出
Mysql> exit;