Resubmit "Add support for mysqli extension"

This reverts commit 1d7e12179df0db332f9ac139e8b7d831e04a6a10.

Change-Id: Id1a3fc34e94006b880f58de83e5e7c70b21d26ed