Install failed in MySQLi under certain conditions (fixes #511)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>