How can I disable the cache via the database?
All of the cache information is stored inside a table named core_cache_option
.
If you browse to this table you will see that it contains a code and a value; the code being the type of cache and the value being a 0 or 1
representing off or on. Simply change the values based upon your needs.