以下内容:
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) |
答案 0 :(得分:1)
当错误消息显示时,有些东西试图从您的本地计算机连接到您的服务器而不使用密码。我假设dave帐户不存在,存在但限制为IP或存在密码。
如果是复制,则不会看到'dave'@'localhost'
被拒绝访问,它将是'dave'@'someotherserver'
(除非您在同一服务器上运行了两个mysql进程)。
如果这是常规的事情,那么我先看cron
;看看有没有经常尝试连接到MySQL。