Code Monkey home page Code Monkey logo

Comments (5)

azanelli avatar azanelli commented on July 17, 2024

Is your MySQL server up and running?
Did you set up the application.properties file with your own configurations (mysql server url, username, password)?

from spring-boot-samples.

marqn avatar marqn commented on July 17, 2024

Hi
I'm still working to run my spring boot application on openshift environment.
On localhost my app work great both mysql and mongodb (used of course application.properties)
Configuration is excellent.
Unfortunately mysql doesn't work on openshift.

from spring-boot-samples.

azanelli avatar azanelli commented on July 17, 2024

Ok. I close this issue since it is not about our code.

from spring-boot-samples.

bakhodir10 avatar bakhodir10 commented on July 17, 2024

just add this code :
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
to application.properties.
It looks like :

spring.application.name= test
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
spring.datasource.password=1001
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=false
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
server.port=8088

from spring-boot-samples.

basurohit77 avatar basurohit77 commented on July 17, 2024

I have gone through similar error. The error was not coming earlier, but recently I reinstall my oracle db and change the instance name from 'xe' to 'orcl', but forget to change this piece of code in property file:

spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
spring.datasource.url=jdbc:oracle:thin:@localhost:1521:xe
spring.datasource.username=system
spring.datasource.password=manager

Once I change it from 'xe' to 'orcl' everything is fine.

from spring-boot-samples.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.