Can I require confirmation on all destructive operations on a MySQL database? -


i have local mysql database i'm playing manually. can use safe-updates / i-am-a-dummy options disallow unqualified delete statements:

delete table; 

however, can still lose accidental

truncate table table; 

as latter statement not prevented safe-updates. apart backing database, what's best way prevent data loss here? there way require confirmation before all destructive actions, not delete?


Comments

Popular posts from this blog

iis - ASP.Net Core CreatedAtAction in HttpPost action returns 201 but entire request ends with 500 -

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -