Comments (5)
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.
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.
Ok. I close this issue since it is not about our code.
from spring-boot-samples.
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.
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)
- Exception related to hibernate.dialect when running MySQL-Hibernate example HOT 1
- can you give an example how to binding User birthday date with json like this: {"birthdayDate":"20010302"}"
- Exception evaluating SpringEL expression: "searchResults.isEmpty()" (search) HOT 1
- Database Creation and Permission HOT 2
- What does it mean by equired a bean of type 'com.xx.xx.repository' that could not be found. HOT 1
- Getting Error creating bean with name 'entityManagerFactory' HOT 1
- "Error creating bean with name" issue HOT 1
- use Spring 2.0.3 write an example HOT 6
- How to set connection-init-sql in DriverManagerDataSource
- "spring-boot-mysql-hibernate" startup fails
- dear netgloo ,how to solve this problem ? HOT 1
- Missing list objects HOT 2
- Error on run HOT 9
- App Fails to start HOT 6
- can you upgrade spring-boot version in spring-boot-hibernate-search? HOT 1
- Add Integration Test HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot-samples.