why I need Mysql connector java?

馋奶兔 提交于 2019-12-11 17:28:46

问题


Always when I want to use programme that using mysql database, it forces me to install MySQL connector or mysql-connector-java.jar

Why do I need MySQL connector and how does it work??

simple and logical explanation please!!


回答1:


JDBC is a library used by your Java programs to access relational databases. You can use it to access Oracle, Informix, Microsoft SQL Server, PostgreSQL, DB2, and other makes of database server, as well as MySQL.

The MySQL connector is a library for, well, connecting JDBC to the MySQL database. If your program were using Oracle, you would use the Oracle connector instead.

This is necessary because each make of database server has its own specific protocol for transporting requests to, and results from, the server to application programs.



来源:https://stackoverflow.com/questions/47592380/why-i-need-mysql-connector-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!