I’ve never tried it on a non-default MySQL port. I’m not sure if it’ll work the way you’re trying to do it.
I will add an option to specify the port. I’ve created an issue here: https://github.com/MillionDollarScript/MillionDollarScript/issues/22
If you would like to add the port you will have to modify /include/database.php on the 2 mysqli_connect options and add the port after the password and that might work for you.