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

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

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -