Comments (5)
I found the problem. I was trying to INSERT
data in a specific MySQL database schema and it didn't like that.
When I changed the <schema_name>.<table_name>
to <table_name>
it worked!
from pcfdev.
Hi @Turbots,
If you run:
cf env app
and extract the mysql uri
from the p-mysql
section of VCAP_SERVICES
, are you able to use those credentials to connect to the database from the host? Your application seems to be connecting to 10.254.0.6
, which is incorrect. Make sure your application is getting the database credentials from VCAP_SERVICES
and not elsewhere.
from pcfdev.
Hi @Turbots,
Are you still running into this issue?
from pcfdev.
Hey @sclevine yes I was able to check it out a bit more and I am able to connect to the database from my host machine and this was the output from SHOW GRANTS
:
GRANT USAGE ON *.* TO '2S0DxFu1C8NdVrXf'@'%' IDENTIFIED BY PASSWORD '*A05F4DD3DBDC0343EC2466C5D451D17014495555' WITH MAX_USER_CONNECTIONS 10
GRANT ALL PRIVILEGES ON `cf_bd5e3e0b_e91c_42d0_be56_78f716ce1745`.* TO '2S0DxFu1C8NdVrXf'@'%'
I can see that the credentials are present when I execute cf env <appname>
and I see in my logs that the application can connect to the database (it creates the tables).
So, tables are created but when I try to create data (using Spring Boot and Spring Data JPA) I get the above error.
"p-mysql": [
{
"credentials": {
"hostname": "mysql.local.pcfdev.io",
"jdbcUrl": "jdbc:mysql://mysql.local.pcfdev.io:3306/cf_bd5e3e0b_e91c_42d0_be56_78f716ce1745?user=2S0DxFu1C8NdVrXf\u0026password=YH5sW4LrMYcNbz3S",
"name": "cf_bd5e3e0b_e91c_42d0_be56_78f716ce1745",
"password": "YH5sW4LrMYcNbz3S",
"port": 3306,
"uri": "mysql://2S0DxFu1C8NdVrXf:[email protected]:3306/cf_bd5e3e0b_e91c_42d0_be56_78f716ce1745?reconnect=true",
"username": "2S0DxFu1C8NdVrXf"
},
"label": "p-mysql",
"name": "jit-mysql",
"plan": "512mb",
"provider": null,
"syslog_drain_url": null,
"tags": [
"mysql"
]
}
]
from pcfdev.
I have the same problem. And I didn't understand the solution!
from pcfdev.
Related Issues (20)
- Enabling nfs-volumes on PCF-DEV and / or PWS HOT 3
- Unable to register service broker with self-signed certificate HOT 2
- PCF-DEV and DELL ECS HOT 3
- Timed out waiting for the VM: rpc error HOT 13
- DELL ECS with PCFDEV HOT 2
- cf dev start fails HOT 7
- cf dev start: Failed to deploy the BOSH Director: Process exited with status 1 HOT 5
- pcfdev installation failed on Mac OS X version 10.13.6 HOT 5
- cf dev start stuck at 55, pcfdev ova ssl error on Windows with virtualbox environment. HOT 2
- PCDev Stale version of Bosh/PAS?? HOT 2
- vb ù ù HOT 1
- vb ù ù HOT 1
- vb ù ù ù HOT 1
- vb ù ù ù HOT 1
- vb ù ù ù HOT 1
- unable run the pcf dev -f filepath giving new object error in power shell HOT 2
- pcfdev scs fails to deploy. HOT 13
- pcfdev fails to deploy PAS HOT 2
- Download of PCF Dev v1.3.0 for PAS 2.5.7 not possible HOT 3
- [PCF-Dev v1.3.1]: Deployment of Spring Cloud Services (SCS) fails again - Service broker error: Could not find an available leader 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 pcfdev.