LoginSignup
28
33

More than 3 years have passed since last update.

MySQL8.xとのJDBC接続 ※注意事項※

Last updated at Posted at 2019-03-20

注意事項①:MySQL8.x向けのJDBCドライバー

企业微信截图_20190320172038.png
「jar」をクリックして、ドライバーをダウンロードできます。

注意事項②:ドライバーのアドレス

8.x以前:「com.mysql.jdbc.Driver」
8.x:「com.mysql.cj.jdbc.Driver」

注意事項③:URL

8.x以前:「jdbc:mysql://localhost:3306/testdb」
8.x:「jdbc:mysql://localhost:3306/testdb?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B9:00&rewriteBatchedStatements=true」
※「serverTimezone=GMT%2B9:00」とは、日本のタイムゾーン「GMT+9:00」に指定すること。
※後ろに何個のパラメータを追加する必要があります。

結論:新バージョンは面倒くさいなぁ:triumph::frowning2::cry:

28
33
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
28
33