mysql用户

1. 学会能按着需求创建一个帐号

2. 知道连接字符串是什么样

3. 密码密码怎么恢复

mysql用户权限介绍

mysql用户管理

 

需要创建一个监控帐号

监控帐号需要执行的命令:

1. show global status/variables; 

2. show slave status\ show master status;

3. show engine innodb status;

4. show processlist; or show full processlist;

5. select xxx from information_schema.xxx;

create user 'monitor

create user 'monitor'@'%' identified by 'mon4zabbix';

% 所有机器源

create user 'monitor'@'192.168.11.99' identified by 'mon4zabbix';

grant show , select on information_schema.* to 'monitor'@'%' ;

select user, host, plugin, authentication_string from mysql.user;

ALTER USER 'jeffrey'@'localhost'   IDENTIFIED BY 'new_password' PASSWORD EXPIRE;

Drop user ‘用户名’@’来源’;

点赞
收藏

评论区

加载中...

相关推荐

MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1

文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s

Oracle 分组与拼接字符串同时使用

SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(

手写Java HashMap源码

HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程HashMap的使用教程22

MySQL基础(一)

一、连接MySQL数据库1连接:2mysqlhhostuuserp34常见错误:5ERROR2002(HY000):Can'tconnecttolocalMySQLserverthroughsocket'/tmp/my

Mysql数据库的优化

一:Mysql参数优化1.查看mysql参数最大连接!(https://oscimg.oschina.net/oscnet/0e4e34a1cc875042ecb1d51e365443b7a66.png)调大mysql参数连接(最大可设置12384)!(https://oscimg.oschina.net/oscnet/b213d5

MYSQL基础知识小盲区

MYSQL必会的知识新学的MySQL小技能:show PROCESSLIST; 查看当前数据库的进程(也就是正在进行的sql操作)!(https://oscimg.oschina.net/oscnet/c7908995a15dcf322850eb4ba0416cc34b1.png)kil