Your simple answer - you basically can't
How many times does it have to be said - You can't upgrade the major components of XAMPP piecemeal.
Its a bad idea, and likely just won't work, ita a case of - "if you have to ask, you can't do it" (a corrolary of "If you have to ask the price, you can't afford it").
I refuse to feel sorry for you, as a simple search on this forum, or just 'perusing it' would have uncovered dozens of similar topics - dealing with PHP, Perl, MySQL and Apache - the answer is the same for all - IF YOU NEED SPECIFIC VERSIONS AND THEY ARE NOT PART OF A SUITE (XAMPP, LAMPP, OR WAMP) YOU HAVE TO DO STANDALAONE INSTALLATIONS
Did it occur to you to ASK FIRST? Someone might have told you how to back up, before you destroyed your database. and you wouldn't be in quite the fix you find yourself in. Thye also would have told you not to try it.
BTW, I'm dying to know specifically why you needed the 'latest release'.
I guess my response does not fit your apparent needs, but its accurate.