You can point at the old database in the aforementioned inc/config.php, but don't think that will solve all your problems. You're trying to restore 1820 data into a 1822 release. Some things will be different - like templates - even on a bone stock installation. And that stuff is in the database.
Personally, I'd never try to upgrade in this manner. Would follow the MyBB Upgrade instructions and do it in place. I've been distracted by the mysql technicalities of this exercise and guilty of losing sight of the main goal. Not sure this can be done with the anticipated results. Because of the version differences.
I know how I'd proceed, but too many questions regarding your previous installation remain unclear. Might do more harm then good to elaborate. Leaving this one to the experts.
cheers...
Personally, I'd never try to upgrade in this manner. Would follow the MyBB Upgrade instructions and do it in place. I've been distracted by the mysql technicalities of this exercise and guilty of losing sight of the main goal. Not sure this can be done with the anticipated results. Because of the version differences.
I know how I'd proceed, but too many questions regarding your previous installation remain unclear. Might do more harm then good to elaborate. Leaving this one to the experts.

cheers...