You asked: Is MySQL ODBC or JDBC?

Developed by MySQL
ODBC Driver for MySQL (Connector/ODBC) Download
JDBC Driver for MySQL (Connector/J) Download


MySQL Connector/J is the official JDBC driver for MySQL. MySQL Connector/J 8.0 is compatible with all MySQL versions starting with MySQL 5.6. Additionally, MySQL Connector/J 8.0 supports the new X DevAPI for development with MySQL Server 8.0.


The MySQL Connector/ODBC is the name for the family of MySQL ODBC drivers (previously called MyODBC drivers) that provide access to a MySQL database using the industry standard Open Database Connectivity (ODBC) API.

Is JDBC the same as ODBC?

ODBC is an SQL-based Application Programming Interface (API) created by Microsoft that is used by Windows software applications to access databases via SQL. JDBC is an SQL-based API created by Sun Microsystems to enable Java applications to use SQL for database access.

What is difference between JDBC and MySQL?

The pro is more features; the con is less standardisation. I would not expect any difference with performance and security, since the two packages use the same classes under the hood (AIUI) The usage should not be fundamentally different; the MySQL package should add on to the JDBC package.

IMPORTANT:  Question: What is try catch in Java?

How do I connect to a MySQL database?

To Connect to a MySQL Database

  1. Click Services tab.
  2. Expand the Drivers node from the Database Explorer. …
  3. Enter User Name and Password. …
  4. Click OK to accept the credentials. …
  5. Click OK to accept the default schema.
  6. Right-click the MySQL Database URL in the Services window (Ctrl-5).

Where is my MySQL jar file?


  1. Download the MySQL Connector/J drivers at
  2. Install the . jar file and note its location for future reference. For example, install the . jar file at C:Program FilesMySQLMySQL Connector Jmysql-connector-java-5.1. 32-bin. jar.


Open Database Connectivity (ODBC) is an open standard Application Programming Interface (API) for accessing a database.

How do I connect to MySQL ODBC?

To set up a new ODBC data source for MySQL Server:

  1. Install the latest MySQL ODBC drivers: …
  2. Open the 64 bit ODBC Administrator: …
  3. Open the System DSN tab and click Add:
  4. Choose the latest MySQL ODBC driver and click Finish:
  5. Enter the ODBC credentials: …
  6. Test the data source connection:

Should I use ODBC or JDBC?

Both JDBC and ODBC are used from an application on the client side to access different types of database on the server side. If you want to platform and language independent then use ODBC else if you are working on Java platform then use JDBC.

Is ODBC faster than JDBC?

As you can see, with less number of records being fetched from the database, C(ODBC) performed better. But as the number of records were increased, Java(JDBC) came out as the winner.

IMPORTANT:  How do I remove a specific instance of SQL Server?

Does JDBC use ODBC?

ODBC was introduced by Microsoft prior to JDBC in 1992. JDBC was introduced by SUN MicroSystems after ODBC in 1997. ODBC is platform dependent as we can use ODBC only for windows platform. On the other hand, JDBC is platform-independent and can be used for any platform.

Does JPA use JDBC?

JPA-based applications still use JDBC under the hood. … In other words, JPA serves as a layer of abstraction that hides the low-level JDBC calls from the developer, making database programming considerably easier.

Which is faster JPA or JDBC?

My one test result on an Intel processor shows that JPA queries are 15% faster than functionally equivalent, but slightly simplified JDBC queries , while another test result on an AMD processor says JPA queries are the same as JDBC queries.


Query Types Time in seconds
JPA Native Queries 53
JDBC Queries 62

What is better than JDBC?

unlike jdbc, hibernate connects with the database itself and uses hql (hibernate query language) to execute the queries, then maps the results to java objects. the results are mapped to objects based on the properties given in the hibernate configuration xml file.

Code Academy