Mysql8.0的连接写法

1.配置

jdbc.driver=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/testconn?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong
jdbc.username=root
jdbc.password=123456

2.maven



  mysql
  mysql-connector-java
  8.0.11

你可能感兴趣的:(MySql)