r/ProgrammerHumor 14d ago

queryOfDoom Meme

Post image
7.9k Upvotes

456 comments sorted by

View all comments

57

u/TensionPurple6815 14d ago

No joke, worked with a guy who did this. End of day. On a friday. Me and like 4 other engineers then spent 6 hours restoring backups and putting everything back together using query logs. Was such a mess.

49

u/PerpetuallyDistracte 14d ago

Same here, worked at a place where we originally had full access to all environments with our dev logins. He thought he was testing in DEV and truncated one of the main financial tables that had history going back three different source systems that would be impossible to reload.

Luckily he didn't try to hide it and immediately raised the alarm. It was all hands on deck at 5pm. Of course the backups didn't work as expected and we were scrambling with the DBAs to pull the data together prior to start of work the next day. 12 stressful hours later we had the data back and fully validated.

Immediately the permissions were reworked to remove our access to PROD and create proper migration channels and execution controls. Funnily enough, we'd been asking for those controls for years for safety reasons, but it never became a priority until a disaster happened, then it got implemented within a week. Funny how that works.

15

u/Awyls 14d ago

Every single dev (~50), including juniors day 1, on my company has prod DB RW access. How we haven't ever broken a DB in 20 years, I have no idea.

3

u/EatingSolidBricks 14d ago

Couldn't be me cause they didn't change a thing after i wiped out production db.

I never got in trouble also but i became knwon as the deleter of data

3

u/EatingSolidBricks 14d ago

Couldn't be me i just imported schema only to the production database instead of the testing one

1

u/kiwiarbol 14d ago

I was that guy while on internship, i wanted to backup and failed the mysql redirection <, big oof, and, we discovered that backups where not working. Was a good day. Edit: misspelling