I am not saying its impossible. I will say you are on your own, and it would be quite difficult. XAMPP does not support swapping out of hey components; i.e Apache, PHP, MySQL. For a variety of reasons, some of the other components like Perl or phpMyAdmin are do-able if you have patience and a bit of knowledge. That is really because they are very loosely tied in, not so for the 'Big 3'.
XAMPP basically is a suite, not the raw components. It isn't really even a LAMP Stack, as the OS and 'installers' have no idea that XAMPP or any of its components are installed. Its actually a bash script. You should read it. Open /opt/lampp/lampp in a programmer's editor and set the language to bash/sh -- you will see its all command line stuff. Good luck on getting that all correct.
That is where the problem comes in, you would have to manually configure and compile MySQL to get it to work, and then weave that back into lampp.
Sorry to rain on your parade.
Good Luck with your projects.