Can't connect kotlin to mySql even after adding the jdbc driver
Im trying to connect kotlin to mySql but i've followed alot of tutorials and codes and then i receive that error
and this is my code : No suitable driver found for jdbc:mysql://localhost:3306/mysql
import java.sql.DriverManager
import java.sql.Connection
import java.sql.SQLException
fun main()
{
Test.connection()
}
object Test {
@JvmStatic
var con: Connection? = null
val url = "jdbc:mysql://localhost:3306/mysql"
val username = "admin"
val password = "123456"
fun...