Install MySQL server with Docker Compose

Inside a new directory, create a data directory and docker-compose.yml with these rows: version: ‘3’   services: db: container_name: docker-local-mysql image: mysql:5.7.21 volumes: – "./data:/var/lib/mysql" restart: always ports: – 3306:3306 environment: MYSQL_ROOT_PASSWORD: passwordversion: ‘3’ services: db: container_name: docker-local-mysql image: mysql:5.7.21

No suitable driver found for jdbc:mysql://localhost:3306/schema

If the exception “Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/schema” is raised probably you forgot to add the <property name="driverClassName"><value>com.mysql.jdbc.Driver</value></property><property name="driverClassName"><value>com.mysql.jdbc.Driver</value></property> property to your dataSource bean: <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName"><value>com.mysql.jdbc.Driver</value></property> <property