Since Magento 1.5.0.0 the SSH upgrade command has been changed to ./mage instead of ./pear. If you have used ./pear upgrade-all in the past, you will now have to use the ./mage version. I was upgrading from Magento 1.4.2.1 to Magento 1.5.1.0. I’m using the Community Edition.
For ./mage to work you need to CHMOD it to have sufficient permissions. Then you need to add the newer 1.5 version of Magento pear channels. The following worked for me on the Magento 1.4.2.1 install. As always please do not try this on a production site. Create a staging version of your Magento store before you try upgrading. Also, remember to backup your database. One more thing: please remember to point local.xml to the new database and not the production one. :)
[plain]
./mage channel-add connect20.magentocommerce.com/community
./mage channel-add connect20.magentocommerce.com/core
./mage sync
./mage upgrade-all –force
[/plain]
Thanks for this – I couldn’t understand why this wasn’t working until I saw your post!