The other day I mismatched some quote mark when entering text in a widget. Wordpress stopped responding. I got lucky as I had another copy open and just deleted evrything in the text widget.
It's easy to fix a lock out caused by a plug-in. You just FTP and delete the folder. But how do you fix a lockout caused by a text widget- MySQl?