Mysql主从复制

时间:2014-05-19 12:47:36

标签: mysql

我有一个主从复制,它以0秒的延迟同步数据。但最近我发现MySQL主人已达到“太多连接”,所以我检查了MySQL master中的进程列表,并且我们的一个人解决了sql注入攻击,所以我们杀了那些查询但不幸的是我们丢失了从master的slave同步。

当我检查奴隶处理清单时,我看到了 MySQL的>显示奴隶状态\ G

   Last_Errno: 1053
   Last_Error: Query partially completed on the master (error on master: 1053) and was aborted. There is a chance that your master is inconsistent at this point. If you are sure that your master is ok, run this query manually on the slave and then restart the slave with SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1; START SLAVE; . Query: 'update Tracking set outTime = NOW() where id = 'IF(SUBSTR(@@version,1,1)<5,BENCHMARK(2600000,SHA1(0xDEADBEEF)),SLEEP(5))/*'XOR(IF(SUBSTR(@@version,1,1)<5,BENCHMARK(2600000,SHA1(0xDEADBEEF)),SLEEP(5)))OR'|"XOR(IF(SUBSTR(@@version,1,1)<5,BENCHMARK(2600000,SHA1(0xDEADBEEF)),SLEEP(5)))OR"*/''

请有人帮忙..,我该如何解决这个问题。

1 个答案:

答案 0 :(得分:0)

有人正在针对您的服务器进行盲注SQL注入攻击。这也可以像拒绝服务一样,因为该技术依赖于创建延迟来确定数据库中的某些数据。

编辑:

实际上,它旨在成为拒绝服务攻击。更多信息:http://0mghax.blogspot.nl/2010/09/mysql-query-timeout-remote-denial-of.html