It's time to ditch Medium for good! 🌈⚡️

Introducing Devblog by Hashnode. Blog on your domain for FREE. Highly customizable and optimized for developers.

Learn more

I did a stupid mistake

Oh dear... its 13 minutes before midnight and i just did a stupid stupid thing. my plan was to make a critical db query and to be 100% on the save site i made a backup in advanced.

bash> mysqldump -p dmdn > dmdn.sql

and after that i checked twice, yes i am a professional and know what i'm doing

bash> du -h dmdn.sql 
8MB dmdn.sql

looks good now let`s drop the database

bash> mysqldump -p dmdn > dmdn.sql 
Enter password:

ah not the backup again, ctrl+c now let`s drop the database!!!

MariaDB> drop database dmdn;

Guess what happened next... #stupid #mistake

Write your comment…

I hope it was your dev DB. You didn't do that in prod right?



Reply to this…

Share your programming knowledge and learn from the best developers on Hashnode

Get started

my hero ;D ..... why did you drop it in the first place?

Show all replies

Andreas Beder lol ;D some of the best data loss stories start with

Hey Iam clever ....

Reply to this…