3

次のように:

select * from mysql.general_log order by event_time desc

なぜ「アクセス拒否」が頻繁に表示されるのですか?それは2秒かそこらごとにそれをやろうとしているようです。これはバグですか、それともなぜこれが発生しているのですか、それはどういう意味ですか?

| 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'(同じサーバーで2つのmysqlプロセスが実行されている場合を除く)。

それが普通のことなら、私はcron最初に見ていきます。MySQLに定期的に接続しようとしているものがあるかどうかを確認します。

于 2012-09-11T15:46:35.547 に答える