I've been a WeeWX user since late 2013. At first I ported it to a BeagleBone Black but I moved it to a Raspberry Pi somewhere around late 2018. The point of all this is that I have been running it for years--last version was 3.8.0, I think, but just this weekend I actually upgraded the whole Pi to the latest Raspbian as well as WeeWX 4.8. I appreciate that WeeWX can upgrade the database files automagically, but just like the original poster here, I am stuck with an old database that I'd like to import.
The Raspberry Pi folks have a tendency to say "Yes, you can upgrade Raspbian, but it is much easier to just install the new version fresh" (and this is my experience in other cases too!). This precludes upgrading WeeWX and thus the database does not automatically get upgraded. I found this post after I had already installed the new system and it had been running for a day or so (without any old data). It turns out that the "reconfigure" above was just what I needed. I stopped WeeWX, made a copy of the day-old database and replaced it with the old one. Then ran re-configure and rebuilt the daily summaries (must use "sudo"!) and started up WeeWX. Interestingly, WeeWX must have had to rebuild some more because it was not till I looked this morning that a whole year's worth of data was showing under "Year". But the other interesting thing is that it apparently re-downloaded data from my Vantage's buffer so it seems to have all the data from the past couple days and I don't have to merge in the "new" database.
Anyway, besides giving my experience, I'd like to suggest that idea that an upgrade on Raspberry Pi might often consist of a complete new system be included in the documentation. Then also mention 'reconfigure'. The only hard part about this was finding the information! Thanks to everyone for it being here at all!
Thanks for listening...
Burns