There are many situations where there is a require where you need to run multiple instances of MySQL on same machine.
Some situations are:
- test a new MySQL release while leaving an existing production setup undisturbed
- give different users access to different mysqld servers that they manage themselves
I will tell you how with ease you can setup multiple versions of MySQL in a machine and will help you understand the internals of it.