【MySQL】关于MySQL的jdbc

Java MySQL 连接

https://www.runoob.com/java/java-mysql-connect.html



mysql5用的驱动url是com.mysql.jdbc.Driver,mysql6以后用的是com.mysql.cj.jdbc.Driver。

https://stackoverflow.com/questions/45286426/classnotfoundexception-with-com-mysql-cj-jdbc-driver-mysql-connector-and-intell

#############################

com.mysql.jdbc.Driver

com.mysql.cj.jdbc.Driver

org.mariadb.jdbc.Driver

##############################


com.mysql.jdbc.Driver 和 com.mysql.cj.jdbc.Driver的区别

https://www.cnblogs.com/liaojie970/p/8916568.html


java连接MariaDB/MySQL的设置

http://www.htsjk.com/mariadb/26731.html



MySQL Connector/J,List of MySql jar file

https://mvnrepository.com/artifact/mysql/mysql-connector-java




MariaDB Java Client,JDBC driver for MariaDB and MySQL

https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client



关于jdbc url  的 Properties & Descriptions

Configuration Properties for Connector/J

https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-configuration-properties.html




Connecting Securely Using SSL

https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-using-ssl.html


CREATE USER Statement

https://dev.mysql.com/doc/refman/5.7/en/create-user.html#create-user-tls



Converting PEM certificates and private keys to JKS

https://roopindersingh.com/programming/converting-pem-certificates-and-private-keys-to-jks



关于MySQL开启SSL后,jdbc的配置

https://www.jianshu.com/p/39cb6b36d6bd




MySQL SSL: Setting up Server Authentication

https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-using-ssl.html





Set SSL Certificate for MySQL Connection

https://stackoverflow.com/questions/35576994/spring-jpa-application-properties-usessl

##########################################

jdbc:mysql://xx.xx.xx.xx:3306/test

?useSSL=true

&requireSSL=true

&verifyServerCertificate=true

&clientCertificateKeyStoreUrl=file:cert/keystore.jks

&clientCertificateKeyStorePassword=123456

&trustCertificateKeyStoreUrl=file:cert/truststore.jks

&trustCertificateKeyStorePassword=123456

##########################################


What's New in Connector/J 8.0?

https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-whats-new.html

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容