Skip to content
Advertisement

Tag: mysql

Spring Boot cannot create database table in mysql 5.7

I’d like to create a table called dni with that information in mysql server. Querys that failed: 1.”create table dni (id bigint not null, apellidos varchar(255), codigo_dni varchar(255), direccion varchar(255), fecha_nacimiento varchar(255), foto_perfil varchar(255), nombre varchar(255), primary key (id)) engine=MyISAM” 2.”create table hibernate_sequence (next_val bigint) engine=MyISAM” What I tried: –> put @Table(name = dni) –> put this on pom.xml org.hibernate.dialect.MySQL5Dialect

How to read database view metadata

I’m trying to use Java and Spring to read the table structure for a MySQL database. The code I’ve got (based on other answers on this site) is: If I call this code with the name of any of my database tables, it works perfectly. However, when I pass the name of any of my database views, I get the

Mulesoft Anypoint 7 . MYSQL missing MySQL driver class

It’s a fundamental question but it’s a really annoying issue when starting with mule Error: “Cannot load class ‘com.mysql.jdbc.Driver'”. Caused by: java.sql.SQLException: Error trying to load driver: com.mysql.jdbc.Driver : Cannot load class ‘com.mysql.jdbc.Driver’: [ com.mysql.jdbc.Driver, Cannot load class ‘com.mysql.jdbc.Driver’: [ Class ‘com.mysql.jdbc.Driver’ blablablablablablablablablablablablablablablabla That is very likely because I don’t have the mysql connector jar as a pom dependency. But

Advertisement