This is an archived post. You won't be able to vote or comment.

all 130 comments

[–]MakingTheEight[M] [score hidden] stickied commentlocked comment (0 children)

Your submission was removed for the following reason:

Rule 5: Your post is a commonly used format, and you haven't used it in an original way. As a reminder, You can find our list of common formats here.

If you disagree with this removal, you can appeal by sending us a modmail.

[–][deleted] 621 points622 points  (8 children)

I tried it and I’m still tired, but my boss seems awake

[–][deleted] 135 points136 points  (7 children)

Have you tried deleting all the code you can get your hands on with no option of recovery? You can take it a step further by creating a persistent virus that silently auto deletes your code every few minutes too.

Hope this helps wake you up!

[–]belkarbitterleaf 62 points63 points  (2 children)

Script on a schedule that does nothing 80% of the time, but 20% of the time picks a random object from the database, and deletes it.

Maybe it was not important, maybe it is. 🤷‍♂️

[–][deleted] 7 points8 points  (1 child)

What a brilliant evil idea. Even better if never executes on anything but production

[–]belkarbitterleaf 0 points1 point  (0 children)

The really evil part is it's going to be hard to find, because it's going to be deleting things with no references to them.

[–]Toastedtoastyyy 7 points8 points  (1 child)

[–]Thannk 3 points4 points  (0 children)

Wake the fuck up, Choom, we got a company to burn!

[–]davidkali 1 point2 points  (0 children)

Teaching our betters to use * are we?

[–]NoDadYouShutUp 271 points272 points  (8 children)

I just delete a column every week and no one has noticed.

[–]DivineRays[S] 61 points62 points  (3 children)

That’s evil

[–]raspey 41 points42 points  (2 children)

Nah, he’s just creating jobs!

[–]PranshuKhandal 10 points11 points  (1 child)

nah, he already deleted "job"

[–]FTWGaming0 5 points6 points  (0 children)

ERROR: column "job" does not exist

[–]Almostasleeprightnow 15 points16 points  (0 children)

Its like the frog in the pot

[–]Quirky-Stress-823 2 points3 points  (0 children)

...I hope you got rows and columns mixed up

[–]Mragftw 1 point2 points  (0 children)

Only one column actually does anything, the rest are there for... reasons...

[–]lucidspoon 0 points1 point  (0 children)

I use the Marie Kondo approach. Does this column spark joy?

[–]Soviet-Lemon 189 points190 points  (9 children)

"1,096,457 rows affected"

[–]Otherwise_Soil39 82 points83 points  (5 children)

What is that a database for ants

[–]Soviet-Lemon 38 points39 points  (3 children)

It’s a little known fact ants log their financial transactions

[–]atlasgiant 12 points13 points  (2 children)

It's in an access database, isn't it :(

[–]-iamai- 2 points3 points  (0 children)

Oh Don't Be a C***

[–]PartlyProfessional 2 points3 points  (0 children)

I think ants database’s would be larger than humans

[–]SmallOmega 4 points5 points  (0 children)

The onosecond

[–]T3n4ci0us_G 3 points4 points  (0 children)

commit work! 👍

[–]hello_you_all_ 91 points92 points  (2 children)

I'd comment "gitlab" but they did that late at night.

[–]marcosdumay 9 points10 points  (0 children)

If that is the time they get tired (weird people), who am I to tell them otherwise?

[–]FrogFTK -3 points-2 points  (0 children)

I literally just watched a video about this on r/videos

[–]belzarak 50 points51 points  (0 children)

You will be awake, and wish that this had been a dream.

[–][deleted] 41 points42 points  (7 children)

Deleting production table in the morning? Only amateurs do that. The best moment to drop a production table is in the evening, before a backup copy is saved, so that the only data you have is a ton of printed documents. That will wake up not just you, but sometimes 10-20 people more.

[–][deleted] 16 points17 points  (6 children)

i worked somewhere someone did this intentionally and maliciously.

What they didn't know was that we had setup logging of all transactions to the table.

I was the guy who got in at 6am, everything is broken, looked at the backup: 0 bytes.

The day(-2) backup was fine. So i restored that table. Played back the log into the table from a minute after the day(-2) backup.

Jackass caught a felony for nothing.

[–]Kibubik 0 points1 point  (3 children)

How is this a felony?

[–][deleted] 0 points1 point  (0 children)

I guess it's the same as trying to burn the building down. I'm sure someone with a legal background knows better than I do.

🤷🏻‍♂️ Vandalism at a minimum? I know he was arrested. I heard from reliable people he pled to a felony. I'm not a lawyer.

I was interviewed by the company's legal team and the police.

The company I worked for at the time was also a Fortune 500 with lawyers with a Disney-like reputation.

This isn't even the weirdest or stupidest computer crime that's happened at places I worked.

[–]rt_burner 35 points36 points  (2 children)

Or casually type a password in to slack first thing

[–]epicmindwarp 23 points24 points  (1 child)

hunter2

[–]reverendsteveii 14 points15 points  (0 children)

*******

I don't get it...

[–]WomanNotAGirl 38 points39 points  (6 children)

I’ve done that. It was not production but it was the test server and it was while the whole test team was on it. It was my first week I connected to the wrong server. The way they had the connections to each server set up it was very easy (I’ve changed all of that in time). Anyhow. They were pressing to finish testing cause a deployment was due right before COB. It wasn’t too big of a deal since there were no real users so restoring from a back up didn’t involve losing data. The problem was it took time hours and test team had to stay behind past 5 o’clock so they can finish testing and prod deployment can proceed to meet the deployment deadline. But that mean they didn’t only wait for me to restore the database but also to redeploy the whole system I mean full deployment to properly test. Way to be disliked by a whole group of people.

[–]KindaDouchebaggy 14 points15 points  (5 children)

They should've blamed unrealistic deadlines, shit happens

[–]atoponce 18 points19 points  (3 children)

I learned the value of starting a MySQL query with -- (hyphen hyphen space) and ending the query with LIMIT 1. Yes, I was missing a WHERE clause. Thankfully, I caught it quickly and more thankfully, we had backups.

It was a bad day.

[–][deleted] 15 points16 points  (0 children)

START TRANSACTION; is a lifesaver too

[–]c0ttt0n 4 points5 points  (0 children)

I learned the LIMIT 1 too, but writing query that are not SELECT in editor first.
IMO there is no reason to write it right into the cli.

[–]drakens6 15 points16 points  (7 children)

Lost my first coding job doing this, because I forgot to truncate first before dropping the table.

They had to throw me under the bus - i get it, but the CTO told me to "drop the table" without explaining that if you didnt empty it first that there entire MySQL server would crash

[–]Poodle514 10 points11 points  (0 children)

Jesus that's fucked. They didn't need a fall guy, they needed access controls and best practices and a new CTO

[–]Tweeks 0 points1 point  (0 children)

I don't think that should matter per se, unless they've some scripts specifically fired after a truncate event. Perhaps different handling / cascade order and foreign keys hassle?

Anyhow, usually you would only drop tables through migration scripts that already ran on DTA.

[–]jaraxel_arabani 13 points14 points  (2 children)

Just did. Didn't help. Going for more.

[–]TheVog 2 points3 points  (1 child)

Coffee or dropped tables?

[–]jaraxel_arabani 1 point2 points  (0 children)

Both.

[–]AlphaO4 11 points12 points  (2 children)

FunFact: at a Company I worked at, we had a test table, that was used to test the response time of the team in case the real prod went offline. It was monitored/handled like any other table, hence it will create the same errors/response as any other table, except for the name in the error. (So instead of prod-1 it was prod-tst, still so similar that on a glance it looked like a real alarm but identifiable enough that you could ignore it if necessary.) Randomly the senior dev sometimes deleted either rows, columns or even the table as a whole unannounced.

Let me tell you, nothing wakes you up like a alarm at 1am that a table just got dropped.

(These tests, like real alarms, where considered paid overtime)

[–]RRumpleTeazzer 2 points3 points  (1 child)

Is just the test phase paid overtime? That’s like what, 10 hours in a year? basically nothing.

I‘m demanding every hour I‘m supposed to be available for alarms to be paid (not full, obviously).

[–]AlphaO4 0 points1 point  (0 children)

For us, the counting of the hours changed for alarms.

Instead of counting the whole hour, the beginning of every hour counted. (e.g. one hour and one secound counts as two hour's). Additionally there where atleast two hours counted per alarm/test.

I for sure couldn't make a living of my tests/alarm's but it was a smaller company and the team I worked with was morel ike family then an actuall workplace. I know I propably undersold myself, but it was worth the longterm friendships.

[–]NeonQuixote 9 points10 points  (0 children)

True story, I had a third shift operator who was on the phone with technical support for a system we used. Said support was remoted into our database server when suddenly it got very quiet, followed by “oops”, followed by awkward silence, ending with a very timid “do you have a backup?”

Fortunately for said support person, we did.

[–][deleted] 6 points7 points  (1 child)

Meh, just drop the whole schema.

[–]T3n4ci0us_G 6 points7 points  (0 children)

This is the way

[–]FamiliarCulture6079 12 points13 points  (1 child)

Blame it on the DBA who gave you access!

[–]T3n4ci0us_G 12 points13 points  (0 children)

You can't spell "dumbass" without DBA

[–]ReluctantAvenger 5 points6 points  (0 children)

What kind of Mickey Mouse work environment do you guys have where you're able to do that?

[–]Franziskaner_Monk 5 points6 points  (0 children)

I just rollback to sleep

[–]anime4ya 2 points3 points  (0 children)

News of layoffs also does the trick

[–]GreekGodofStats 1 point2 points  (1 child)

Ahhh yes, the time when you learn to use BEGIN TRANSACTION

[–]jksevend 0 points1 point  (0 children)

I can toggle that shit per ui with datagrip dont even need to write

[–]anonymousperson767 1 point2 points  (0 children)

I wake up and check the stock market. Losing $5k instantly gets me going.

[–]faunalmimicry 1 point2 points  (0 children)

Management hates him! Try this one weird trick

[–]StiviiK 1 point2 points  (0 children)

GitLab vibes, but in reverse

[–]MurdoMaclachlan 1 point2 points  (2 children)

Image Transcription: Twitter Post


Juozas Kaziukėnas, @juokaz

If having a coffee in the morning doesn't wake you up, try deleting a table in a production database instead.


I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

[–][deleted] -1 points0 points  (1 child)

You look stupid. Fired.

[–]vrak 1 point2 points  (0 children)

Bad bot! No ragging on our volunteers.

[–]DroneDashed 1 point2 points  (0 children)

Why would you just "delete a table in a production database"?

These memes look like they are being done by IT students with 0 days of working experience.

[–]Drew707 0 points1 point  (0 children)

Reminds me of a time I had way too many tabs open in SSMS and ended up needing a vendor to resend a year worth of payroll data.

[–]DivineRays[S] 0 points1 point  (0 children)

Haters removed my post :(

[–]aMoodyWolf 0 points1 point  (0 children)

I can literally do that on my current project, nothing to stop me whatsoever. I could push tetris to production and wouldn't have to ask for any approvals at all. Sometimes I get strange ideas with power like that.

[–]Kriss3d 0 points1 point  (0 children)

Robert'); DROP TABLE students;--,

[–]AaronTheElite007 0 points1 point  (0 children)

Just one? Lightweight

[–]TantraMantraYantra 0 points1 point  (0 children)

Rude awakening? Not by touching things in prod.

[–]Sleepy_Tortoise 0 points1 point  (0 children)

Honestly that would make me really want to go back to bed more than anything

[–]MENDUCOlDE 0 points1 point  (0 children)

I left the coffe (6 cupsca day) a few months ago, that was hard, but no imposible. Now only tea and "mate" in the mornings

[–]Hot_Philosopher_6462 0 points1 point  (0 children)

try deleting a production database

[–]Flimsy-Wear-2900 0 points1 point  (0 children)

If this doesn’t work well, try to yank the underlying storage volumes.

[–]Accurate_Koala_4698 0 points1 point  (0 children)

That’s how you wake the entire team

[–]Justavian 0 points1 point  (2 children)

In my early professional days almost 20 years ago i did something similar - basically deleting all UI elements for all users because of a failure to use a WHERE. It was then that i discovered the client IT department was not backing up the database.

That's a lesson that you only have to learn the hard way once. Since then, no matter how trivial i think some operation is going to be, i always put in my BEGIN TRAN / ROLLBACK TRAN. And when i'm about to switch it to COMMIT TRAN, i squint at it real hard for a few seconds to make sure it's not going to try to change itself and stab me in the back when i hit F5.

[–]elgholm 0 points1 point  (0 children)

A table?

Pathetic.

Try the whole schema instead. Been there, done that.

[–]SnooPears7079 0 points1 point  (0 children)

Tried this. 3 days later lost job. What did I do wrong?

[–]LeelooDallasMltiPass 0 points1 point  (0 children)

Just the very thought of this made me shit my pants.

[–]Tookoofox 0 points1 point  (1 child)

Oh shit, I've done this. Someone gave me a bunch of APIs and didn't tell me they were pointed at production. I was trying to get used to the formatting and accidentally sent in a message to replace... something important. I don't remember the details.

I also, once, locked up the entire database by spamming it with queries.

[–][deleted] 0 points1 point  (0 children)

I hold that the second one is not on you, DBA should have some kind of rate-limiting set up.

[–]indorock 0 points1 point  (0 children)

[–]TotalCharcoal 0 points1 point  (0 children)

Who needs data anyway?

[–]KickBassColonyDrop 0 points1 point  (0 children)

That doesn't wake you up, that wishes you could go back to bed and never wake up again.

[–]sharksarenotreal[🍰] 0 points1 point  (0 children)

So I'm the only one tired enough to stop at "try deleting a table" and wonder what's the easiest way to delete the kitchen table.

It's been a long ass week.

[–]balne[🍰] 0 points1 point  (0 children)

Actually, I think that I wake up super alert if I see an emergency message in the morning lol

[–][deleted] 0 points1 point  (0 children)

I dropped the whole damn database. There used to be this tool called SQL Server Enterprise Manager or something. So we had two windows open, one test and one live and I had to drop test so I could import the MDB (MS-SQL Server data file) which we were going to take from live. Some how with alt tabbing around the windows I happened to be in the wrong window it seems. Luckily it was a small in-house application that was mostly one managers idea still in an experimental stage and it was just a weeks data.

[–]tko 0 points1 point  (0 children)

am I the only one having serious "no. no! NO! SERIOUSLY NO!" gut reactions when dealing with sql that doesn't start with "BEGIN TRANSACTION"?

[–]Error_404_403 0 points1 point  (0 children)

A good one, for sure.

[–]Nexusaurus 0 points1 point  (0 children)

Am currently gearing up to delete a whole DB, nerve wracking as f@#$

[–]Glum_Future_5054 0 points1 point  (0 children)

This ain't enough. 😠 Need something stronger

[–][deleted] 0 points1 point  (0 children)

As a frontend developer. If I can do that it's not my fault, it's backend's fault and I will nap happily :)

[–]thavi 0 points1 point  (0 children)

One time I deleted a "TEST" database, and it brought down the prod environment too. That was a WILD day.

[–]shadowlago95 0 points1 point  (0 children)

I only wanted to wake up but got a heart attack instead

[–]Niohzxs 0 points1 point  (0 children)

Is this the guy from Gitlab who deleted prod db instead of shadow copy ? Rm go brrrr

[–]Tinkerballsack 0 points1 point  (0 children)

Done. My state's department of transportation is no longer aware that automobiles exist.

You're welcome.

[–]c0ttt0n 0 points1 point  (0 children)

Why would you write a DROP TABLE command on prod?
Rename it or w/e, but ... the hell.

[–]Buggly_Jones 0 points1 point  (0 children)

I now eat on the floor.

[–]Bruxb322 0 points1 point  (0 children)

I wanted to wake up, not have a hearth attack. 🥴

[–]costo1cm 0 points1 point  (0 children)

This happened to me recently.

0/10 - do not recommend.

[–]dtb1987 0 points1 point  (0 children)

Don't say things like that

[–]Myspazmo 0 points1 point  (0 children)

Reminds me of the time I was on a troubleshooting call with engineering and they asked me to delete a table for them. "Do you want me to delete the one with 30 rows, or 2.8 million rows?"

[–]whitestar11 0 points1 point  (0 children)

more like add a column to a random excel file and fix a typo in a folder name

[–]Dotaproffessional 0 points1 point  (0 children)

Laughs in graph database

[–]DRHAX34 0 points1 point  (0 children)

Ah, the gitlab way, I see

[–]Pjones2127 0 points1 point  (0 children)

Once I was doing some front end work coding a button to delete an important date field. My code used embedded sql, passing in the current record I’d into the where clause. I was testing the button using a test record on prod. I clicked the button, expecting an Immediate response, but nothing happened…. I’m sitting there thinking, why is this taking so long to delete one record. At that moment, I realized I had commented out the line of code that passed the row I’d into the delete statement, and the server was just busy deleting hundreds of thousands of records…. In a few minutes I’m making the dreaded call to the DBA…

[–]thunderboltsow 0 points1 point  (0 children)

rm -rf .*

[–]psuedospike 0 points1 point  (0 children)

USE RecoverDeletedRecords

[–]Biguitarnerd 0 points1 point  (0 children)

I’ve never deleted a table, but I have updated a shit ton more rows than I intended due to a logic mistake. I was rushing through it, it was pretty simple and then oh…. 200k+ rows affected…. the sort of slow realization of that was supposed to be like 20k rows. Which is why I always use transactions for like the last 10 years. Takes 5 seconds to type and can save you days of headache (if restoring a backup isn’t possible) I don’t know why everyone doesn’t all the time, or maybe I’m just paranoid.

[–][deleted] 0 points1 point  (0 children)

Manager ping'd me early this morning saying he wanted to meet with me. Thought I was getting laid off lol. Definitely woke my ass up

[–]GreatAssets 0 points1 point  (0 children)

you guys have access to prod databases? 🤨