Unfortunately you can't do much with MySQL driver. See QSqlDatabase::setConnectOptions().