JDBC gives Java applications abstractions for working with relational databases, but the JDK does not supply an implementation for each database technology. A JDBC driver is a runtime dependency that provides the implementation for a particular database, such as MySQL, PostgreSQL, or Oracle. It enables the application to obtain database connections; it is supplied by the database vendor, not by the JDK or Spring. section 12.1
Figure 12.3 When connecting to a database, a Java app uses JDBC. The JDK provides a set of abstractions, but the app needs a certain implementation that depends on the relational database technology the app connects to. A runtime dependency named JDBC driver offers these implementations. For each specific technology, such a driver exists, and the app needs the exact driver that offers the implementations for the server technology it needs to connect to.

Follow the connection path: the application uses JDBC abstractions, and the matching runtime driver implements them for the database technology it needs to reach. section 12.1
Switching to MySQL
To connect a Spring Boot application to MySQL, add the MySQL JDBC driver as a runtime dependency and configure the database URL and credentials in application.properties. The driver supplies the database-specific implementation; Spring Boot uses the datasource properties to create a DataSource. section 12.3.1 section 12.5
