资料库被勒索只能跑路?先等等!
今天早晨,打开资料库一看,保存的数据全不见了,只剩下一个叫PLEASE_READ_ME_VVV的资料库。
里面写著
To recover your lost Database and avoid leaking it: Send us 0.045 Bitcoin (BTC) to our Bitcoin address 1McksxpysJGSG9a9zHvan5f8Y1nfpDbVYF and contact us by Email with your Server IP or Domain name and a Proof of Payment. Your Database is downloaded and backed up on our servers. Backups that we have right now: *. Any email without your server IP Address or Domain Name and a Proof of Payment together will be ignored. If we dont receive your payment in the next 10 Days, we will make your database public or use them otherwise.
翻译过来就是:
要恢复丢失的资料库并避免泄漏:请将0.045比特币(BTC)发送到我们的比特币地址1Mcksxpysjgsg9a9zhvan5f8y1nfpdbvyf,并通过电子邮件与您的伺服器IP或域名和付款证明联系。您的资料库已下载并备份到我们的伺服器上。我们现在拥有的备份:*。任何没有您的伺服器IP地址或域名和付款证明一起的电子邮件都将被忽略。如果我们在未来10天内没有收到您的付款,我们将公开您的资料库或使用它们。
被勒索了。
第一步,打开谷歌寻找解决办法。看到这篇博文,遇到了同样的问题。
资料库被人勒索比特币惨遭删库 https://www.printf520.com/single.html?id=53
以下内容,针对具体情况进行进一步处理。
第二步,查看自已是否打开了mysql的binlog
SHOW VARIABLES LIKE log_bin%;
+---------------------------------+---------------------------------------+
| Variable_name | Value |
+---------------------------------+---------------------------------------+
| log_bin | ON |
| log_bin_basename | /usr/local/var/mysql/mysql-bin |
| log_bin_index | /usr/local/var/mysql/mysql-bin.index |
| log_bin_trust_function_creators | OFF |
| log_bin_use_v1_row_events | OFF |
| sql_log_bin | ON |
+---------------------------------+---------------------------------------+
6 rows in set (0.00 sec)
log_bin是ON说明mysql是开启了binlog的,找到了binlog的位置,在
/usr/local/var/mysql/mysql-bin
于是
cd var/lib/mysql