Chinaunix首页 | 论坛 | 博客
  • 博客访问: 507126
  • 博文数量: 150
  • 博客积分: 6021
  • 博客等级: 准将
  • 技术积分: 1201
  • 用 户 组: 普通用户
  • 注册时间: 2010-02-27 20:07
文章分类

全部博文(150)

文章存档

2012年(1)

2011年(27)

2010年(122)

我的朋友

分类: Mysql/postgreSQL

2012-03-19 10:49:06

实验目的:Aborted_connects影响值的因素
 
session_1:

  1. root@localhost : (none) 10:56:12> grant all privileges on *.* to 'renwen'@'192.168.0.100' identified by 'renwen';
  2. Query OK, 0 rows affected (0.01 sec)

  1. root@localhost : (none) 10:57:44> show global status like 'Aborted_connects';
  2. +------------------+-------+
  3. | Variable_name | Value |
  4. +------------------+-------+
  5. | Aborted_connects | 2 |
  6. +------------------+-------+
  7. 1 row in set (0.00 sec)
session_2:
 
IP:192.168.0.101

  1. [root@data /root]# mysql -h192.168.0.130 -P3306 -urenwen -prenwen
  2. ERROR 1045 (28000): Access denied for user 'renwen'@'192.168.0.130' (using password: YES)
session_1:

  1. root@localhost : (none) 11:02:46> show global status like 'Aborted_connects';
  2. +------------------+-------+
  3. | Variable_name | Value |
  4. +------------------+-------+
  5. | Aborted_connects | 3 |
  6. +------------------+-------+
  7. 1 row in set (0.00 sec)

结论:当访问权限不够时的连接,会引起参数Aborted_connects值的变化。
阅读(2722) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

坏坏小丸子2012-03-23 06:41:49

:当访问权限不够时的连接,会引起参数Aborted_connects值的变化