Upgraded MySQL support from mysql to mysqli