Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 1.59 KB

Story.md

File metadata and controls

35 lines (19 loc) · 1.59 KB

I erased a big bank's account data

Author: hotvulcan [email protected]

Many years ago, I got a project from a big unit (something like a company, but belonging to the state of China) in China. That included an interface to a big bank's front machine. It was early years, and information security was not as serious as it is today. So they put me in a small chamber and gave me access to that front. The project was not officially online but had some transactions already — some hundreds of thousands CNY a day.

It was the end of month, and I had to remove the test data so they could do the settlement. The SQL was something like delete from journals where done_by = 'example';. I had worked 36+ hours, got very tired, and typoed it as delete from journals ; where done_by 'example'. And, the journals were gone.

I was frozen, as I perceived it, for about ten years. Eventually, I started to ponder. Most information was available from other tables, but that day's journal data were helplessly lost. However, the project was still in debug mode, so I still had enough logs to re-calculate that data. I wrote a Perl script and the data was restored. Fortunately, I didn't have to go to jail or run for my life...

P.S. "Some hundreds of thousands CNY" could buy a big apartment in Beijing or 200~300 ounces of gold in that year.

PR your story here

Fork and tell your story here, then PR. EXAMPLE:

Title: 从删库到跑路

Author: example [email protected]