Moved from mysql to mysqli php extension (issue #2122)