MySQLNativeDriver

fun MySQLNativeDriver(host: String, database: String, user: String, password: String, port: Int = 3306): MySQLNativeDriver

Constructor for a MySQLNativeDriver

Initiates the MySQL client library, sets options and initiates the connection.

Return

MySQLNativeDriver if the connectino succeeds.

Throws

IllegalArgumentException

if there's a connection error