4 ms·
15 years ago when we were hosting servers in a co located facility I accidentally turned off a server instead of rebooting it (from terminal services). The sup
by jontro 9y ago
15 years ago when we were hosting servers in a co located facility I accidentally turned off a server instead of rebooting it (from terminal services).
The support personel were annoyed as they had to drive over to the facility and manually push the power button
- Cerium 9y agoI still have the habit to type "-r 0" ctrl+a "shutdown".
- unit91 9y agoOh wow that's really smart. Thanks!
- deleted 9y ago[deleted]
- iooi 9y agoDoesn't hurt to do the same when writing UPDATE queries, `WHERE id=X LIMIT 1` ctrl+a `UPDATE...`
- ufmace 9y agoI got used to typing "UPDATE SET x=x WHERE ..." and then going back and changing the "x=x" to the actual column assignments after I typed the WHERE clause.
- chasd00 9y agoto this day, i type "update where <where clause>" and then go back and add the set part of the statement. I think it would have been safer to put the where clause at the front of the sql syntax. Like "delete where <whereclause> from table", "update where <where clause> set ..." etc. I know any production database that's of real importance is going to have safeguards in place but it still makes me nervous.
- ufmace 9y agoYeah, I wish they would update the SQL syntax to at least allow the WHERE clauses to be first in UPDATEs and DELETEs. Doesn't seem to be much enthusiasm around for making big changes to SQL like that though.