I copied my v4 database, created a new directory for my v5 test and I successfully ran the upgrade script via command line.

My v5 site is now up here:

mysite.com/test/
...