为什么我需要Mysql连接器java? [英] why I need Mysql connector java?

查看:128
本文介绍了为什么我需要Mysql连接器java?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

总是要使用使用mysql数据库的程序时,它会强制我安装MySQL连接器或mysql-connector-java.jar

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

为什么需要MySQL连接器,它如何工作?

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

请简单而合理地解释!!

simple and logical explanation please!!

推荐答案

JDBC是Java程序用来访问关系数据库的库.您可以使用它来访问Oracle,Informix,Microsoft SQL Server,PostgreSQL,DB2和其他品牌的数据库服务器以及MySQL.

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.

MySQL连接器是一个用于将JDBC连接到MySQL数据库的库.如果您的程序使用的是Oracle,则应改用Oracle连接器.

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.

这篇关于为什么我需要Mysql连接器java?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆