MySQLi port can now take an int-ish string

Fixes #2823
See f03f434