Skip to content

Commit

Permalink
Common: fix mysql connection (close #626)
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhanunlu committed Jun 24, 2022
1 parent 6c14825 commit f107606
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ object Rdbms {
database: String
) extends Rdbms {

val driver: Class[_] = Class.forName("com.mysql.jdbc.Driver") // Load class
val driver: Class[_] = Class.forName("com.mysql.cj.jdbc.Driver") // Load class

val connectionString =
s"jdbc:mysql://$host:$port/$database?user=$username&password=$password" ++ (if (sslMode)
"&useSsl=true&verifyServerCertificate=false"
"&sslMode=REQUIRED"
else
"")
"&sslMode=PREFERRED")
}

val postgresqlDbDecoder: Decoder[PostgresqlDb] =
Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ object Dependencies {
val useragent = "1.21"
val uaParser = "1.4.3"
val postgresDriver = "42.2.25"
val mysqlConnector = "8.0.16"
val mysqlConnector = "8.0.29"
val hikariCP = "5.0.1"
val jaywayJsonpath = "2.7.0"
val iabClient = "0.2.0"
Expand Down

0 comments on commit f107606

Please sign in to comment.