我有一个主从复制,它以0秒的延迟同步数据。但是最近我观察到MySQL主机已经到达了“太多的连接”,所以我检查了MySQL主机中的进程列表,我们的一个人处理了sql注入攻击,所以我们杀死了这些查询,但不幸的是我们失去了从主机的同步。
当我检查从进程列表时,我看到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"*/''
请来人帮帮忙,我该如何解决这个问题。
发布于 2014-05-19 22:42:09
有人正在对您的服务器运行盲目SQL注入攻击。这也可以起到拒绝服务的作用,因为该技术依赖于创建延迟来确定数据库中的某些数据。
编辑:
实际上,这是一种拒绝服务攻击。更多信息:http://0mghax.blogspot.nl/2010/09/mysql-query-timeout-remote-denial-of.html
https://stackoverflow.com/questions/23738162
复制相似问题