Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 416 Vote(s) - 3.49 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What's your #1 way to be careful with a live database?

#1
For my customer I occasionally do work in their live database in order to fix a problem they have created for themselves, or in order to fix bad data that my product's bugs created. Much like Unix root access, it's just dangerous. What lessons should I learn ahead of time?

What is the #1 thing you do to be careful about operating on live data?
Reply

#2
Make your changes to a copy, and when you're satisfied, then apply the fix to live.
Reply

#3
Always make sure your UPDATEs and DELETEs have the proper WHERE clause.
Reply

#4
Make sure you specify a where clause when deleting records.
Reply

#5
always test any queries beyond select on development data first to ensure it has the correct impact.
Reply

#6
Backup or dump the database before starting.
Reply

#7
To add on to what @[Wayne][1] said, write your `WHERE` before the table name in a `DELETE` or `UPDATE` statement.


[1]:

[To see links please register here]

Reply

#8
BACK UP YOUR DATA. Learned that one the hard way working with customer databases on a regular basis.
Reply

#9
Maybe consider not using any deletes or drops at all. Or maybe reduce the user permissions so that only a special DB user can delete/drop things.
Reply

#10
Always add a using clause.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through