3

具有以下内容:

select * from mysql.general_log order by event_time desc

为什么它会如此频繁地显示“拒绝访问”?似乎它每隔两秒左右就会尝试这样做。这是一个错误还是为什么会发生这种情况?这是什么意思?

| user_host                 | thread_id | server_id | command_type | argument                                                          |
+---------------------------+-----------+-----------+--------------+-------------------------------------------------------------------+
| root[root] @ localhost [] |       122 |         0 | Query        | select * from mysql.general_log order by event_time desc          |
| [] @ localhost []         |       223 |         0 | Connect      | Access denied for user 'dave'@'localhost' (using password: NO) |
| [dave] @ localhost []  |       223 |         0 | Connect      | dave@localhost as  on                                          |
| [] @ localhost []         |       222 |         0 | Connect      | Access denied for user 'dave'@'localhost' (using password: NO) |
| [dave] @ localhost []  |       222 |         0 | Connect      | dave@localhost as  on                                          |
| [] @ localhost []         |       221 |         0 | Connect      | Access denied for user 'dave'@'localhost' (using password: NO) |
| [dave] @ localhost []  |       221 |         0 | Connect      | dave@localhost as  on                                          |
| [] @ localhost []         |       220 |         0 | Connect      | Access denied for user 'dave'@'localhost' (using password: NO) |
| [dave] @ localhost []  |       220 |         0 | Connect      | dave@localhost as  on                                          |
| [] @ localhost []         |       219 |         0 | Connect      | Access denied for user 'dave'@'localhost' (using password: NO) |
| [dave] @ localhost []  |       219 |         0 | Connect      | dave@localhost as  on                                          |
| [] @ localhost []         |       218 |         0 | Connect      | Access denied for user 'dave'@'localhost' (using password: NO) |
| [dave] @ localhost []  |       218 |         0 | Connect      | dave@localhost as  on                                          |
| [] @ localhost []         |       217 |         0 | Connect      | Access denied for user 'dave'@'localhost' (using password: NO) |
| [dave] @ localhost []  |       217 |         0 | Connect      | dave@localhost as  on                                          |
| [] @ localhost []         |       216 |         0 | Connect      | Access denied for user 'dave'@'localhost' (using password: NO) |
| [dave] @ localhost []  |       216 |         0 | Connect      | dave@localhost as  on                                          |
| [] @ localhost []         |       215 |         0 | Connect      | Access denied for user 'dave'@'localhost' (using password: NO) |
4

1 回答 1

1

正如错误消息所显示的那样,有些东西正在尝试以 dave 身份从您的本地计算机连接到您的服务器,而无需使用密码。我假设 dave 帐户不存在,存在但仅限于 IP 或存在密码。

如果是复制,你不会看到'dave'@'localhost'被拒绝访问,它会是'dave'@'someotherserver'(除非你有两个 mysql 进程在同一台服务器上运行)。

如果这是常规的事情,那么我会先看看cron;查看是否有任何东西定期尝试连接到 MySQL。

于 2012-09-11T15:46:35.547 回答