Skip to content
Advertisement

Tag: mysql

JOOQ MySQL DATETIME Type

I’m trying to generate this simple SQL with JOOQ and for some reason I can’t get it done. I want the following code to be generated for MySQL databases. I expected it to be something like Unfortunately, MySQLDataType is deprecated. JOOQ explicitly says to only use types declared in SQLDataType, but for some reason I can’t find any. I’ve already

Error creating bean with name ‘entityManagerFactory’ defined in class path resource (Invocation of init method failed)

When I try to run my spring-boot project with hibernate and MySql, I got following error. My application.properties In pom.xml I have following dependencies, and my Course model looks like below, I also referred previous questions(Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed) regarding this issue, But nothing helps. Full code

com.mysql.jdbc.Driver not loaded. Are you sure you’ve included the correct jdbc driver in :jdbc_driver_library

I am getting java version and mysql-connect-java.jar compatibility issue with logstash. can any one tell me which version of mysql-connect-java.jar is compatible with which version of java? Error: my current java version is I have tried with below mysql connector jar files but every one fails. Logstash config file is mysql.conf Answer for logstash 6.2.x and above, prefer adding the

Spring boot Mongo DB .yml configuration

When I use MySQL and hibernate for spring boot, I use below configuration in .yml file If it is mongoDB instead of MySQL and hibernate how does it change? Answer The mongodb properties are all prefixed with spring.data.mongodb. For user property you would use The list of available mongodb properties are here: You can find them at source for how

DBUnit: NoSuchColumnException Non-uppercase input column in ColumnNameToIndexes cache map. map’s column names are NOT case sensitive

My java application stores your information in MySql database version 8. The user information and password are stored in this database. I am implementing an integration test to test the method that validates the user in the database using dbunit. After the test method runs, the error below occurs. I checked through MySql Workbench that both the table and the

Checking connection to MySQL (Java)

I’m working on creating my little-utility for MySQL, and I need some help. How I can check connection to MySQL (by login and password), like it was realised in phpMyAdmin, without pointing some database at first. Because most of solutions for work with databases need exactly that pointing. Thanks in advance) Answer Yes. You can connect to the server without

SSLException: closing inbound before receiving peer’s close_notify

I’m writing a simple JDBC code with MySQL. Everything works fine and I’m able to print the records in table through select statement. But when I’m closing the connection, using Connection.close(), I’m getting the below exception. Any help is appreciated. Answer This was a issue with the MySQL driver on Java 11 https://bugs.mysql.com/bug.php?id=93590 This has been fixed in Connector/J version

Spring boot CLIENT_PLUGIN_AUTH is required

I have my app working fine on local, but when I tried to connect to remote server I get this error: CLIENT_PLUGIN_AUTH is required. Answer I got it. Step 1. Create an user on remote mysql server and grant all privileges. Step 2. Change datasource url Step 3. Change pom.xml mysql Check that version is changed to <version>5.1.6</version> from <scope>runtime</scope>

How to return boolean result from SQL count via JPQL

I have a simple problem with sql query. I need to get true or false, I have tried multiple methods, but without good result. This query returns 0 because I have zero records in database. Perhaps the condition should be adjusted. Thanks for all ideas. Answer Solved, thank you all.

Add a jar file to another jar file

In my project I have this code that tell class loader to load Driver.class like so: In Eclipse it runs with no problems and I have created the Jar file of the project. But I don’t know how to insert the mysql-connector-java-5.1.7-bin.jar into a Jar file of my project. The folder structure look like this: MANIFEST file: Answer I am

Advertisement