fyi: i just committed new versions of DatabasePersistenceManager and DatabaseFileSystem which transparently attempt to recover from a jdbc connection loss. this should solve the mysql issue as well.
see http://issues.apache.org/jira/browse/JCR-645 cheers stefan