If you can't connect to magento admin after upgrade

In case you upgraded to magento 1.4 and can't connect to admin section (you get an error)...

Then do the following:

- SSH into your magento install directory.
- remove all files from ./app/code/core/Zend/Cache/

rm -rf app/code/core/Zend/Cache/*

Tags: magento