mySQLConnection

fun mySQLConnection(host: String, port: String, database: String, username: String, password: String): Connection

Connect to a MySQL database.

Return

the connection to the database

Parameters

host

the host of the database

port

the port of the database

database

the name of the database

username

the username to connect with

password

the password to connect with